[ https://issues.apache.org/jira/browse/KAFKA-13984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhaobo updated KAFKA-13984: --------------------------- Summary: Fix TopicBasedRemoteLogMetadataManager#initializeResources should exit immediately when partition numbers of __remote_log_metadata is inconsistent with configuration file (was: Fix TopicBasedRemoteLogMetadataManager#initializeResources should return immediately when the result of isPartitionsCountSameAsConfigured method is false) > Fix TopicBasedRemoteLogMetadataManager#initializeResources should exit > immediately when partition numbers of __remote_log_metadata is inconsistent > with configuration file > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > 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)