[Java][Client] 2.7.2 regression. MultiTopicsConsumer org.apache.pulsar.client.api.PulsarClientException$NotSupportedException: not support shrink topic partitions
See original GitHub issueDescribe the bug After upgrading java client to 2.7.2 version we started to notice following logs:
2021-05-26 18:00:39.236 ERROR 11646 --- [r-client-io-1-1] o.a.p.c.impl.MultiTopicsConsumerImpl : [persistent://public/batch/embedded_ROUTING1_bdcccf7eeaec7f5e0e7d243451433ac2ae8506d4] not support shrink topic partitions. old: 1, new: 0
2021-05-26 18:00:39.237 WARN 11646 --- [r-client-io-1-1] o.a.p.c.impl.MultiTopicsConsumerImpl : [MultiTopicsConsumer-f03d6] Failed to subscribe increased topics partitions: org.apache.pulsar.client.api.PulsarClientException$NotSupportedException: not support shrink topic partitions
This happens couple of minutes of not pushing new messages to listened topic. Another consequence of that are exceptions when trying to ack message that was in progress coming from that consumer:
org.apache.pulsar.client.api.PulsarClientException$InvalidMessageException: null
at org.apache.pulsar.client.impl.ConsumerBase.acknowledgeAsync(ConsumerBase.java:373)
Expected behavior There should be no errors.
Additional context After upgrading server and java client to 2.7.2 version from 2.7.1 version, but it’s problem in java client.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:9 (9 by maintainers)
Top Results From Across the Web
[GitHub] [pulsar] gaoran10 commented on issue #10717
MultiTopicsConsumer org.apache.pulsar.client.api.PulsarClientException$NotSupportedException: not support shrink topic partitions.
Read more >Pulsar Java client
This document focuses only on the client API for producing and consuming messages on Pulsar topics. For how to use the Java admin...
Read more >pulsar/MultiTopicsConsumerImpl.java at master - GitHub
Apache Pulsar - distributed pub-sub messaging system - pulsar/MultiTopicsConsumerImpl.java at master · apache/pulsar.
Read more >What's New in Apache Pulsar 2.7.2 - StreamNative
Highlights of this release are as below: Consumers are no longer blocked after receiving multiple retry messages in Docker. Consumers can ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess that issue can be somehow related to that change: https://github.com/apache/pulsar/pull/9660
https://github.com/apache/pulsar/pull/10708 has fix it and cherry-pick to 2.7, release 2.7.3, so close it.