-
Notifications
You must be signed in to change notification settings - Fork 14.6k
KAFKA-18913: Consider removing state-updater feature flag - 2 #20382
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
base: trunk
Are you sure you want to change the base?
Conversation
@@ -204,7 +204,7 @@ public void initializeStartupTasks(final TopologyMetadata topologyMetadata, | |||
if (hasPersistentStores && !nonEmptyTaskDirectories.isEmpty()) { | |||
final ThreadCache dummyCache = new ThreadCache(logContext, 0, streamsMetrics); | |||
final boolean eosEnabled = StreamsConfigUtils.eosEnabled(config); | |||
final boolean stateUpdaterEnabled = StreamsConfig.InternalConfig.stateUpdaterEnabled(config.originals()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we pass this into ProcessorStateManager
only -- let's move the variable, and hardcode true
for now.
@@ -236,7 +235,7 @@ public StoreChangelogReader(final Time time, | |||
this.stateRestoreListener = stateRestoreListener; | |||
this.standbyUpdateListener = standbyUpdateListener; | |||
|
|||
this.stateUpdaterEnabled = InternalConfig.stateUpdaterEnabled(config.originals()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we only use this in one place, and it should be possible to remove the variable (and it's usage) completely, in one go
@@ -393,7 +393,7 @@ public static StreamThread create(final TopologyMetadata topologyMetadata, | |||
final Runnable shutdownErrorHook, | |||
final BiConsumer<Throwable, Boolean> streamsUncaughtExceptionHandler) { | |||
|
|||
final boolean stateUpdaterEnabled = InternalConfig.stateUpdaterEnabled(config.originals()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is more complex. Might be better to split into a different PR, as it required more cleanup. Doing a partial cleanup for a single class, is not a "clean cut" and make reviewing more complex.
@@ -416,6 +417,7 @@ public void shouldPollWithRightTimeoutWithStateUpdater(final Task.TaskType type) | |||
shouldPollWithRightTimeout(true, type); | |||
} | |||
|
|||
@Disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not disable this test, but rather clean it up directly. Or exclude StoreChangelogReader
from this PR.
This is PR-2 to incrementally remove old code and builds upon #20378
Changes Made:
ActiveTaskCreator
andStandbyTaskCreator
Checklist