You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "f1amingo (via GitHub)" <gi...@apache.org> on 2026/10/20 09:39:14 UTC

[I] [Enhancement] Make broker-side subscription group max length configurable [rocketmq]

f1amingo opened a new issue, #11466:
URL: https://github.com/apache/rocketmq/issues/11466

   ### Before Creating the Enhancement Request
   - [x] I have confirmed this should be classified as an enhancement.
   
   ### Summary
   RocketMQ enforces a fixed 120-character subscription group limit to keep generated retry topics within 255 characters. Some broker integrations already guarantee that invariant but need longer group names, so otherwise valid groups cannot be created.
   
   ### Motivation
   Allow broker operators to support longer subscription group names without changing the default behavior or relaxing client and gRPC validation globally.
   
   ### Describe the Solution You'd Like
   Add a broker configuration for the subscription group name limit. Keep the default at 120, cap the effective value at 255, and apply it only to broker-side group creation paths. Callers that raise the limit remain responsible for keeping generated retry topics within 255 characters.
   
   ### Describe Alternatives You've Considered
   Environment variables and JVM system properties have JVM-wide scope, require restart, and are not visible through broker configuration management. Raising the global default would weaken the existing retry-topic safeguard for all users.
   
   ### Additional Context
   This is a follow-up improvement to #9563. Group names over 122 characters cannot use `%DLQ%<group>` because broker writes reject topics over 127 bytes; this proposal does not change that existing storage constraint.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Extract group max length into a field in TopicValidator [rocketmq]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #11466: Extract group max length into a field in TopicValidator
URL: https://github.com/apache/rocketmq/issues/11466


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Enhancement] Make broker-side subscription group max length configurable [rocketmq]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #11466:
URL: https://github.com/apache/rocketmq/issues/11466#issuecomment-6288433730

   **Issue Evaluation**
   
   Category: `type/enhancement` | Status: **Evaluated**
   
   **Feasibility:** Feasible — bounded scope, configuration-driven change with clear defaults.
   
   **Scope:** Broker-side subscription group creation/validation paths. Likely affects `SubscriptionGroupManager` and related configuration classes. Does not require changes to client SDKs or gRPC protocol validation.
   
   **Compatibility:** No breaking changes. Default remains 120 characters; only operators who explicitly raise the limit are affected. The 255-character cap preserves the existing retry-topic length invariant.
   
   **Assessment:**
   This is a well-scoped enhancement that addresses a real operational need. The proposed design — broker-side configurable limit with a hard cap at 255, default unchanged at 120 — is sound. Key considerations for implementation:
   
   1. The configuration should be dynamically reloadable (consistent with other broker configs) to avoid restart requirements.
   2. Validation at the broker-side creation path must enforce `min(default_max, configured_max)` to prevent operators from accidentally exceeding the retry-topic length constraint.
   3. The DLQ topic length constraint (127 bytes for `%DLQ%<group>`) mentioned in the issue should remain unaffected — this is a separate storage-layer limit.
   4. Documentation update should accompany the change to clarify the relationship between subscription group length, retry topic length, and DLQ topic length.
   
   This enhancement is a good candidate for community contribution.
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org