dragonls commented on issue #5284:
URL: https://github.com/apache/pulsar/issues/5284#issuecomment-1077489078
We had exactly the same issue in 2.7.2.
It happens that when unloading the topic, the topic becomes fenced, and then
new producer and new consumer having error `Topic is temporarily unavailable`.
After restarting the broker, the issue resolved.
The broker log:
```
// unload
16:11:11.603 [pulsar-web-42-4] INFO
org.apache.pulsar.broker.admin.impl.PersistentTopicsBase - [admin] Unloading
topic persistent://sec/app/mid_291476475-partition-1
// disconnecting producers
16:11:11.603 [pulsar-web-42-4] INFO
org.apache.pulsar.broker.service.Producer - Disconnecting producer:
Producer{topic=PersistentTopic{topic=persistent://sec/app/mid_291476475-partition-1},
client=/9.165.193.134:55508, producerName=pulsar-bi-1406-4093, producerId=73}
16:11:11.603 [pulsar-web-42-4] INFO
org.apache.pulsar.broker.service.Producer - Disconnecting producer:
Producer{topic=PersistentTopic{topic=persistent://sec/app/mid_291476475-partition-1},
client=/9.165.243.144:44908, producerName=pulsar-bi-1406-4533, producerId=99}
...
// disconnecting consumer
16:11:11.607 [pulsar-web-42-4] INFO
org.apache.pulsar.broker.service.Consumer - Disconnecting consumer:
Consumer{subscription=PersistentSubscription{topic=persistent://sec/app/mid_291476475-partition-1,
name=mmdcfisherimport-mid_291476475-dw_safe-ods_safe_topic_291476475-669},
consumerId=1,
consumerName=mmdcfisherimport-mid_291476475-dw_safe-ods_safe_topic_291476475-669,
address=/9.165.226.119:33722}
16:11:11.607 [pulsar-web-42-4] INFO
org.apache.pulsar.broker.service.persistent.PersistentDispatcherMultipleConsumers
- Removed consumer
Consumer{subscription=PersistentSubscription{topic=persistent://sec/app/mid_291476475-partition-1,
name=mmdcfisherimport-mid_291476475-dw_safe-ods_safe_topic_291476475-669},
consumerId=1,
consumerName=mmdcfisherimport-mid_291476475-dw_safe-ods_safe_topic_291476475-669,
address=/9.165.226.119:33722} with pending 0 acks
...
16:11:11.712 [ForkJoinPool.commonPool-worker-15] WARN
org.apache.pulsar.broker.service.AbstractTopic -
[persistent://sec/app/mid_291476475-partition-1] Attempting to add producer to
a fenced topic
16:11:11.712 [pulsar-io-24-33] INFO
org.apache.pulsar.broker.service.ServerCnx -
[/9.165.217.148:59240][persistent://sec/app/mid_291476475-partition-1] Creating
producer. producerId=45
16:11:11.712 [pulsar-io-24-22] INFO
org.apache.pulsar.broker.service.ServerCnx -
[/9.165.193.122:40556][persistent://sec/app/mid_291476475-partition-1] Creating
producer. producerId=33
16:11:11.712 [ForkJoinPool.commonPool-worker-15] ERROR
org.apache.pulsar.broker.service.ServerCnx - [/9.165.193.228:45852] Failed to
add producer to topic persistent://sec/app/mid_291476475-partition-1: Topic is
temporarily unavailable
16:11:11.774 [pulsar-io-24-22] INFO
org.apache.pulsar.broker.service.ServerCnx - [/9.165.221.85:40652] Subscribing
on topic persistent://sec/app/mid_291476475-partition-1 /
mmdcfisherimport-mid_291476475-dw_safe-ods_safe_topic_291476475-669
16:11:11.774 [pulsar-io-24-22] WARN
org.apache.pulsar.broker.service.persistent.PersistentTopic -
[persistent://sec/app/mid_291476475-partition-1] Attempting to subscribe to a
fenced topic
16:11:11.774 [pulsar-io-24-22] WARN
org.apache.pulsar.broker.service.ServerCnx -
[/9.165.221.85:40652][persistent://sec/app/mid_291476475-partition-1][mmdcfisherimport-mid_291476475-dw_safe-ods_safe_topic_291476475-669]
Failed to create consumer: consumerId=1, Topic is temporarily unavailable
```
There are no logs shows like `Failed to unload topic` or `Successfully
unloaded topic`, which means that the unload operation is stuck somewhere.
--
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]