Jianbin Chen created KAFKA-16340:
------------------------------------

             Summary:  Replication factor: 3 larger than available brokers: 1.
                 Key: KAFKA-16340
                 URL: https://issues.apache.org/jira/browse/KAFKA-16340
             Project: Kafka
          Issue Type: Wish
    Affects Versions: 3.7.0
            Reporter: Jianbin Chen
         Attachments: image-2024-03-05-09-31-35-058.png

我在测试分层存储时遇到了设置remote.log.metadata.topic.replication.factor 无效的问题
{code:java}
broker.id=1
log.cleanup.policy=delete
log.cleaner.enable=true
log.cleaner.delete.retention.ms=300000
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
message.max.bytes=5242880
replica.fetch.max.bytes=5242880
log.dirs=/data01/kafka110-logs
num.partitions=2
default.replication.factor=1
delete.topic.enable=true
auto.create.topics.enable=true
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
offsets.retention.minutes=1440
log.retention.minutes=10
log.local.retention.ms=300000
log.segment.bytes=104857600
log.retention.check.interval.ms=300000
remote.log.metadata.topic.replication.factor=1
remote.log.storage.system.enable=true
remote.log.metadata.topic.retention.ms=-1{code}
!image-2024-03-05-09-31-35-058.png!

 

 
{code:java}
[2024-03-05 09:27:49,672] ERROR Encountered error while creating 
__remote_log_metadata topic. 
(org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManager)
java.util.concurrent.ExecutionException: 
org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication 
factor: 3 larger than available brokers: 1.
    at 
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
    at 
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
    at 
org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:165)
    at 
org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManager.createTopic(TopicBasedRemoteLogMetadataManager.java:509)
    at 
org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManager.initializeResources(TopicBasedRemoteLogMetadataManager.java:396)
    at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: org.apache.kafka.common.errors.InvalidReplicationFactorException: 
Replication factor: 3 larger than available brokers: 1.{code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to