cmccabe opened a new pull request, #13826:
URL: https://github.com/apache/kafka/pull/13826

   This PR expands the scope of ApiVersionManager a bit to include returning 
the current MetadataVersion and features that are in effect. This is useful in 
general because that information needs to be returned in an 
ApiVersionsResponse. It also allows us to fix the ApiVersionManager interface 
so that all subclasses implement all methods of the interface. Having 
subclasses that don't implement some methods is dangerous because they could 
cause exceptions at runtime in unexpected scenarios.
   
   On the KRaft controller, we were previously performing a read operation in 
the QuorumController thread to get the current metadata version and features. 
With this PR, we now read a volatile variable maintained by a separate 
MetadataVersionContextPublisher object. This will improve performance and 
simplify the code. It should not change the guarantees we are providing; in 
both the old and new scenarios, we need to be robust against version skew 
scenarios during updates.


-- 
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]

Reply via email to