Skip to content

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

Open
@hegelwin

Description

@hegelwin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions