Skip to content

Calling "peek" on a subscription with an offset of 0 results in a stacktrace #14563

@zbentley

Description

@zbentley

Describe the bug
Calling "peek" on a subscription with an offset of 0 results in a stacktrace

To Reproduce

  1. Create a non-partitioned topic.
  2. Publish at least one message to it.
  3. Create a subscription on it.
  4. Using the management API, do $topic/subscription/$subscription/position/0

Expected behavior
A documented error code and message are returned to the user, indicating "zero is not a valid offset".

Actual behavior
A stacktrace and 500 error are returned.

Pulsar 2.9.1 on MacOS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions