Skip to content

[Enhancement] Relax topic length constraint when creating retry and dlq topics #9479

Open
@Allenhuangrui

Description

@Allenhuangrui

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

Currently, the max topic length is set to be 127 bytes and this length constraint is for all topics as shown in the screenshots below:

Image

Image

We want to enhance the capabilities of RocketMQ by allowing the users to create topics and groups of longer length, from 60 bytes previously to 120 bytes. To achieve this, we need to relax the topic length constraint mentioned above for dlq and retry topics because dlq and retry topics' names are created by concatenating the string "%DLQ%" or "%RETRY%" with the corresponding group name and/or topic name in subscription. The resulting length of the concatenated string maybe longer than 127 if topic/group is too long.

Motivation

Enhance the capabilities of RocketMQ by relaxing the topic/group length constraint.

Describe the Solution You'd Like

Add two more conditions in the if statement of validateTopic method to additionally check whether the validating topic is dlq or retry topic and if it is then skip the topic length validation.

Image

Describe Alternatives You've Considered

N/A

Additional Context

No response

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