`Topology#addGlobalStore` takes any `StoreBuilder`, but 
`InternalTopologyBuilder#addGlobalStore` restricts it to 
`StoreBuilder<KeyValueStore>`. This PR relaxes the restriction in 
`InternalTopologyBuilder#addGlobalStore` to match `Topology#addGlobalStore`.

Testing: adds a new unit test to show that a StoreBuilder<WindowStore> can be 
used in InternalTopologyBuilder#addGlobalStore. This required creating two new 
mocks, `MockWindowStore` and `MockWindowStoreBuilder`, modelled on 
`MockKeyValueStore` and `MockKeyValueStoreBuilder`, respectively.

### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation 
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)


[ Full content available at: https://github.com/apache/kafka/pull/5725 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to