Skip to content

[Bug] Unable to update subscription properties on non-durable subscription #22402

@alexesom

Description

@alexesom

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

OS: Ubuntu 23.10
Docker Pulsar standalone 3.1.2

Minimal reproduce step

Using Java client suggesting that adminClient is of type PulsarAdmin:
invoke adminClient.topics().updateSubscriptionProperties(*topicName*, *subName*, *props*) on a persistent topic (on a non-persistent topic it works just fine) and on non-durable subscription (for durable subscriptions updates also).

What did you expect to see?

Expected to update properties for subscription on a topic

What did you see instead?

I got error:

 --- An unexpected error occurred in the server ---

Message: 
 --- An unexpected error occurred in the server ---

Message: Cannot invoke "org.apache.bookkeeper.mledger.proto.MLDataFormats$ManagedCursorInfo.hasCursorsLedgerId()" because "other" is null

Stacktrace:

java.lang.NullPointerException: Cannot invoke "org.apache.bookkeeper.mledger.proto.MLDataFormats$ManagedCursorInfo.hasCursorsLedgerId()" because "other" is null

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions