Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seek fails on non-partitioned topics due to partition check in Go client #1298

Open
hegelwin opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@hegelwin
Copy link

hegelwin commented Oct 18, 2024

Expected behavior

The Seek method should not check for partition-specific logic when working with non-partitioned topics. It should simply seek to the specified message ID without involving partition indices.

Actual behavior

The Seek method fails with an error related to partition indices when called on a non-partitioned topic. The error message suggests that the Seek command should be performed on individual partitions, even though the topic is not partitioned.

Error: invalid partition index -1 expected a partition between [0-1]"

Steps to reproduce

  1. Create a non-partitioned topic.
  2. Use the Seek method with pulsar.EarliestMessageID() on this topic.
  3. Observe that an error is returned due to partition-specific logic being applied, even though the topic is non-partitioned.

System configuration

Pulsar version: 3.3.2
Pulsar Go client version: v0.13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant