Skip to content

Add the ability to transform an existing non-partitioned to a partitioned topic without deleting it. #9739

Description

@disserakt

Context:
At the moment we cannot change the topic type from non-partitioned to partitioned for topics that already exist and contain data. Such topics can now only be deleted and created as partitioned.
In this case, we lose data.
In order to keep the existing data in topics, it is highly desirable to have a way to transform the topic type from non-partitioned to partitioned and vice versa.

Desirable solution:
For example, for the command - pulsar-admin topics, create a key - transform-type, with flags:

--to-non-partitioned
--to-partitioned

which will allow us to transform the topic type.

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

    lifecycle/staletype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions