-
Notifications
You must be signed in to change notification settings - Fork 9
feat(inkless): POD-2386 Allow remote.storage.enabled when diskless is enabled #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
viktorsomogyi
wants to merge
12
commits into
main
Choose a base branch
from
svv/ts-unification-configs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f4e28ab
feat(inkless): Add TS Consolidation configs
viktorsomogyi fd66674
address some review comments, add tests
viktorsomogyi 12a8902
address the rest of the review comments
viktorsomogyi 9aacc8b
Apply suggestions from code review
viktorsomogyi 7a7e04d
Apply suggestions from code review
viktorsomogyi aaa1466
Apply suggestions from code review
viktorsomogyi 605bf3a
Add new test cases to verify mutual setting
viktorsomogyi 9811437
Add validation logic to satisfy test cases
viktorsomogyi 8e350c0
Fix unit test failures
viktorsomogyi 1a17eb3
Apply suggestions from code review
viktorsomogyi f9b6a6a
Remove unused method and fix carriage returns
viktorsomogyi 3322431
Update core/src/test/scala/unit/kafka/log/LogConfigTest.scala
viktorsomogyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -426,6 +426,7 @@ class KafkaConfig private(doLog: Boolean, val props: util.Map[_, _]) | |
| val disklessStorageSystemEnabled: Boolean = getBoolean(ServerConfigs.DISKLESS_STORAGE_SYSTEM_ENABLE_CONFIG) | ||
| val disklessAllowFromClassicEnabled: Boolean = getBoolean(ServerConfigs.DISKLESS_ALLOW_FROM_CLASSIC_ENABLE_CONFIG) | ||
| val disklessManagedReplicasEnabled: Boolean = getBoolean(ServerConfigs.DISKLESS_MANAGED_REPLICAS_ENABLE_CONFIG) | ||
| val disklessRemoteStorageConsolidationEnabled: Boolean = getBoolean(ServerConfigs.DISKLESS_REMOTE_STORAGE_CONSOLIDATION_ENABLE_CONFIG) | ||
| val classicRemoteStorageForceEnabled: Boolean = getBoolean(ServerConfigs.CLASSIC_REMOTE_STORAGE_FORCE_ENABLE_CONFIG) | ||
| val classicRemoteStorageForceExcludeTopicRegexes: java.util.List[String] = | ||
| getList(ServerConfigs.CLASSIC_REMOTE_STORAGE_FORCE_EXCLUDE_TOPIC_REGEXES_CONFIG) | ||
|
|
@@ -519,6 +520,7 @@ class KafkaConfig private(doLog: Boolean, val props: util.Map[_, _]) | |
| // diskless.storage.system.enable | ||
| // → diskless.managed.rf.enable | ||
| // → diskless.allow.from.classic.enable (also requires remote.log.storage.system.enable) | ||
| // → diskless.remote.storage.consolidation.enable (also requires remote.log.storage.system.enable) | ||
| if (disklessManagedReplicasEnabled) { | ||
| require(disklessStorageSystemEnabled, | ||
| s"${ServerConfigs.DISKLESS_MANAGED_REPLICAS_ENABLE_CONFIG} requires ${ServerConfigs.DISKLESS_STORAGE_SYSTEM_ENABLE_CONFIG}=true") | ||
|
|
@@ -530,6 +532,13 @@ class KafkaConfig private(doLog: Boolean, val props: util.Map[_, _]) | |
| s"${ServerConfigs.DISKLESS_ALLOW_FROM_CLASSIC_ENABLE_CONFIG} requires ${RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP}=true") | ||
| } | ||
|
|
||
| if (disklessRemoteStorageConsolidationEnabled) { | ||
| require(disklessManagedReplicasEnabled, | ||
| s"${ServerConfigs.DISKLESS_REMOTE_STORAGE_CONSOLIDATION_ENABLE_CONFIG} requires ${ServerConfigs.DISKLESS_MANAGED_REPLICAS_ENABLE_CONFIG}=true") | ||
| require(remoteLogManagerConfig.isRemoteStorageSystemEnabled, | ||
| s"${ServerConfigs.DISKLESS_REMOTE_STORAGE_CONSOLIDATION_ENABLE_CONFIG} requires ${RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP}=true") | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agree it does not require allow-from-classic migration. Even though the topic type switcher work includes foundational work for TS consolidation (e.g. diskless start offset, etc) these are not guard by the feature flag. |
||
|
|
||
| require(logRollTimeMillis >= 1, "log.roll.ms must be greater than or equal to 1") | ||
| require(logRollTimeJitterMillis >= 0, "log.roll.jitter.ms must be greater than or equal to 0") | ||
| require(logRetentionTimeMillis >= 1 || logRetentionTimeMillis == -1, "log.retention.ms must be unlimited (-1) or, greater than or equal to 1") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.