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

   The `FeatureControlManager` used `MetadataVersion#LATEST_PRODUCTION`
   as uninitialized MV. This makes other component may get a stale MV.
   In production code, the `FeatureControlManager` set MV when replaying
   `FeatureLevelRecord`, so we can set `Optional.empty()` as uninitialized MV.
   If other components get an empty result, the `FeatureLevelRecord` throws
   an exception like `FeaturesImage`.
   
   Unit test:
   * FeatureControlManagerTest#testMetadataVersion: test getting MetadataVersion
     before and after replaying FeatureLevelRecord.


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

Reply via email to