[ https://issues.apache.org/jira/browse/KAFKA-13984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhaobo updated KAFKA-13984: --------------------------- Description: When executing {*}TopicBasedRemoteLogMetadataManager.initializeResources(){*}, if the result of {*}TopicBasedRemoteLogMetadataManager.{*}isPartitionsCountSameAsConfigured() is false. It means that the actual number of partitions in the internal topic __remote_log_metadata is inconsistent with the number of partitions configured in our configuration file At this time, it is not very reasonable to continue the subsequent initialization process. We should raise an error to exit. was: When executing {code:java} TopicBasedRemoteLogMetadataManager.initializeResources{code} , if the result of isPartitionsCountSameAsConfigured method is false. It means that the actual number of partitions in the internal topic __remote_log_metadata is inconsistent with the number of partitions configured in our configuration file At this time, it is not very reasonable to continue the subsequent initialization process. We should raise an error to exit. > Fix TopicBasedRemoteLogMetadataManager#initializeResources should return > immediately when the result of isPartitionsCountSameAsConfigured method is > false > --------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: KAFKA-13984 > URL: https://issues.apache.org/jira/browse/KAFKA-13984 > Project: Kafka > Issue Type: Improvement > Affects Versions: 3.2.0 > Reporter: zhaobo > Priority: Minor > > When executing > {*}TopicBasedRemoteLogMetadataManager.initializeResources(){*}, if the result > of > {*}TopicBasedRemoteLogMetadataManager.{*}isPartitionsCountSameAsConfigured() > is false. > It means that the actual number of partitions in the internal topic > __remote_log_metadata is inconsistent with the number of partitions > configured in our configuration file > At this time, it is not very reasonable to continue the subsequent > initialization process. > We should raise an error to exit. -- This message was sent by Atlassian Jira (v8.20.7#820007)