You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/07 13:15:04 UTC

[GitHub] [pulsar] otmanel31 opened a new issue #8000: allTopicPartitionsNumber not equals expected error

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:
users@infra.apache.org



[GitHub] [pulsar] alexku7 commented on issue #8000: allTopicPartitionsNumber not equals expected error

Posted by GitBox <gi...@apache.org>.
alexku7 commented on issue #8000:
URL: https://github.com/apache/pulsar/issues/8000#issuecomment-731849416


   is it solved in the 2.6.2 ? anybody knows ? :)


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui closed issue #8000: allTopicPartitionsNumber not equals expected error

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #8000:
URL: https://github.com/apache/pulsar/issues/8000


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] jiazhai commented on issue #8000: allTopicPartitionsNumber not equals expected error

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #8000:
URL: https://github.com/apache/pulsar/issues/8000#issuecomment-688577042


   @otmanel31 Thanks for reporting this issue, This looks like a race condition, we should remove the check in method: `MultiTopicsConsumerImpl.doSubscribeTopicPartitions`. 
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui closed issue #8000: allTopicPartitionsNumber not equals expected error

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #8000:
URL: https://github.com/apache/pulsar/issues/8000


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] otmanel31 commented on issue #8000: allTopicPartitionsNumber not equals expected error

Posted by GitBox <gi...@apache.org>.
otmanel31 commented on issue #8000:
URL: https://github.com/apache/pulsar/issues/8000#issuecomment-688776736


   yeap thanks


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] gpichard commented on issue #8000: allTopicPartitionsNumber not equals expected error

Posted by GitBox <gi...@apache.org>.
gpichard commented on issue #8000:
URL: https://github.com/apache/pulsar/issues/8000#issuecomment-702082304


   @jiazhai I too have the same issue. Is there anything that can be done meanwhile you publish a bug fix ? By the way is there an ETA on the bug fix ? Thank you.


----------------------------------------------------------------
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:
users@infra.apache.org