apache / apache/pulsar

[Bug] Subscribing to topic executes work on the single threaded Pulsar metadata thread in some cases

Open
#23,866 0 comments 0 reactions 1 assignee Claimed by @lhotari View on GitHub
type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Read release policy

- [x] 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

All released versions

### Minimal reproduce step

Subscribe to a topic when metadata isn't yet cached.

### What did you expect to see?

The topic ordered executor to be used.

### What did you see instead?

configuration-metadata-store executor was used:
![Image](https://github.com/user-attachments/assets/600079dc-274b-4d23-808e-98dd90364e34)
It's this executor: https://github.com/apache/pulsar/blob/80157955b69d97fa0568fad4127e34e30e9a2b85/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java#L93-L95

### Anything else?

_No response_

### Are you willing to submit a PR?

- [x] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.