bbejeck opened a new pull request, #12861: URL: https://github.com/apache/kafka/pull/12861
With the addition of the new Processor API the newly added `FixedKeyProcessorNodeFactory` extends the `ProcessorNodeFactory` class. The `ProcessorNodeFactory` had a private field `Set<String> stateStoreNames` initialized to an empty see. The `FixedKeyProcessorNodeFactory` also had a private field `Set<String> stateStoreNames`. When executing `InternalTopologyBuilder.build` executing the `buildProcessorNode` method passed any node factory as `ProcessorNodeFactory` and the method references the `stateStoreNames` field, it's pointing to the superclass field, which is empty so the corresponding `StoreBuilder`(s) are never added - causing NPE in the topology. This PR makes the field `protected on `ProcessorNodeFactory` so `FixedKeyProcessorNodeFactory` inherits it. *Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.* ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
