question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Java][Client] 2.7.2 regression. MultiTopicsConsumer org.apache.pulsar.client.api.PulsarClientException$NotSupportedException: not support shrink topic partitions

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
MichalKoziorowski-TomTomcommented, May 26, 2021

I guess that issue can be somehow related to that change: https://github.com/apache/pulsar/pull/9660

0reactions
congbobo184commented, Jul 26, 2021

https://github.com/apache/pulsar/pull/10708 has fix it and cherry-pick to 2.7, release 2.7.3, so close it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found