mjsax commented on code in PR #16906: URL: https://github.com/apache/kafka/pull/16906#discussion_r1727731596
########## streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractDualSchemaRocksDBSegmentedBytesStore.java: ########## @@ -241,11 +241,10 @@ public String name() { return name; } - @Deprecated @Override - public void init(final ProcessorContext context, - final StateStore root) { - this.context = context; + public void init(final StateStoreContext stateStoreContext, final StateStore root) { + this.stateStoreContext = stateStoreContext; + this.context = StoreToProcessorContextAdapter.adapt(stateStoreContext); Review Comment: This feels rather hacky -- using `adapt` was a workaround as long as we have both `init()` methods. I think, we need to do more cleanup/refactoring and get rid or `this.context` completely and use `this.stateStoreContext` only. However, this PR is already rather larger, so it might be best to do a follow up PR for it. (This comment applies elsewhere) We might want to convert to `InternalProcessorContext` as we do in some other stores? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org