otmanel31 opened a new issue #8000: URL: https://github.com/apache/pulsar/issues/8000
**Description of issue encountered** Hi everyone, i face an issue using apache pulsar client v2.6.1 in my java program that subscribe to a topic pattern with following exception: `Failed to subscribe for topic [persistent://xxxxx/agent_xx/event-967b12df-cd08-4467-a31d-9a38928f0727] in topics consumer java.lang.IllegalStateException: allTopicPartitionsNumber 124 not equals expected: 123`. What i can see in my logs is: - my program try to create a consumer on a specific topic. - my program is successfully connected on the specific topic with just created consumer - warnings logs are thrown with exception. - consumer is directly closed. Below a piece of related stacktrace: > 2020-09-07 12:43:13,410 INFO [pulsar-client-io-1-1] org.apache.pulsar.client.impl.ConsumerImpl: [persistent://xxxxx/edge_xx/event-967b12df-cd08-4467-a31d-9a38928f0727][data_subscription] Subscribing to topic on cnx [id: 0x52b7b3b6, L:/192.168.1.1:57566 - R:pulsar-proxy.default.svc.cluster.local/10.43.220.212:6650] 2020-09-07 12:43:13,411 INFO [pulsar-client-io-1-1] org.apache.pulsar.client.impl.ConsumerImpl: [persistent://xxxxx/edge_xx/event-967b12df-cd08-4467-a31d-9a38928f0727][data_subscription] Subscribed to topic on pulsar-proxy.default.svc.cluster.local/10.43.220.212:6650 -- consumer: 5898 2020-09-07 12:43:13,411 WARN [pulsar-client-io-1-1] org.apache.pulsar.client.impl.MultiTopicsConsumerImpl: [MultiTopicsConsumer-ff083] Failed to subscribe for topic [persistent://xxxxx/edge_xx/event-967b12df-cd08-4467-a31d-9a38928f0727] in topics consumer java.lang.IllegalStateException: allTopicPartitionsNumber 124 not equals expected: 123 2020-09-07 12:43:13,413 INFO [pulsar-client-io-1-1] org.apache.pulsar.client.impl.ConsumerImpl: [persistent://xxxxx/edge_xx/event-967b12df-cd08-4467-a31d-9a38928f0727] [data_subscription] Closed consumer 2020-09-07 12:43:13,413 WARN [pulsar-client-io-1-1] org.apache.pulsar.client.impl.MultiTopicsConsumerImpl: [MultiTopicsConsumer-ff083] Failed to subscribe for topic [persistent://xxxxx/edge_xx/event-967b12df-cd08-4467-a31d-9a38928f0727] in topics consumer, subscribe error: java.lang.IllegalStateException: allTopicPartitionsNumber 124 not equals expected: 123 2020-09-07 12:43:13,413 WARN [pulsar-client-io-1-1] org.apache.pulsar.client.impl.PatternMultiTopicsConsumerImpl$PatternTopicsChangedListener: [MultiTopicsConsumer-ff083] Failed to unsubscribe topics: java.lang.IllegalStateException: allTopicPartitionsNumber 124 not equals expected: 123 2020-09-07 12:43:13,413 WARN [pulsar-client-io-1-1] org.apache.pulsar.client.impl.PatternMultiTopicsConsumerImpl: [MultiTopicsConsumer-ff083] Failed to recheck topics change: java.lang.IllegalStateException: allTopicPartitionsNumber 124 not equals expected: 123 On the other side of broker, there are many producers and the producer that should push data in same topic where the previous consumer failed to subscribe was temporary disconnected. I think i faced this error just after this disconect but not sure. Did someone face this issue of mismatch counter ? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
