Details
Description
Title is not entirely accurate, but describes the most common way this bug presents itself.
The ConnectClusterStateImpl used by Kafka Connect to provide cluster information to REST extensions makes an asynchronous call to Herder.connectors(...) in its connectors() method that populates a list of connector names, then immediately returns that list of connector names. If the list is read soon after it is returned, it's possible it will be empty or at least not completely populated.
Since the method is implicitly synchronous (no callback logic is involved in its parameters or return values, and there is no documentation indicating asynchronous behavior for the ConnectClusterState.connectors() method), this should be remedied by adding a wait for the Herder.connectors(...) method to complete in the ConnectClusterStateImpl.connectors() method.
Attachments
Issue Links
- links to