Skip to content

make version non-optional#697

Draft
mr-git wants to merge 3 commits intomasterfrom
m/make-version-non-optional
Draft

make version non-optional#697
mr-git wants to merge 3 commits intomasterfrom
m/make-version-non-optional

Conversation

@mr-git
Copy link
Copy Markdown
Contributor

@mr-git mr-git commented Nov 6, 2024

No description provided.

@coveralls
Copy link
Copy Markdown

coveralls commented Nov 6, 2024

Comment thread journal/src/main/scala/com/evolutiongaming/kafka/journal/ActionHeader.scala Outdated
@dfakhritdinov dfakhritdinov force-pushed the m/make-version-non-optional branch from 4c0f880 to 0b8a879 Compare November 12, 2024 13:48
range: SeqRange,
origin: Option[Origin],
version: Option[Version],
version: Version = Version.obsolete,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, we do not need here and in 3 other places the default value, right?

All clients with versions since 0.0.152 have to provide these in payload over Kafka. Oldest client we have is 0.0.177, IIRC, thus all of them must provide version field, right?

I checked the history for those journal/src/test/resources/com/evolutiongaming/kafka/journal and related unit-tests - they are more than 6 years old, they were introduced in version 0.0.10 - I am leaning on upgrading them to state/format, which is expected at 0.0.177 - then we will require these fallbacks

Other option would be to introduce protocol version, but that could be overkill at this moment

@dfakhritdinov dfakhritdinov marked this pull request as draft November 14, 2024 09:33
@dfakhritdinov
Copy link
Copy Markdown
Contributor

dfakhritdinov commented Nov 14, 2024

This PR contains braking changes in public API (including some case classes). I see no nice & simple option to overcome this by making desired change backward compatible and propose postponing the PR til next major version bump.

cc @mr-git

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Feb 5, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants