ChimdumebiNebolisa commented on issue #24998:
URL: https://github.com/apache/pulsar/issues/24998#issuecomment-3765903453

   Thanks for raising this.
   
   I’ve reviewed the code path and the limitation comes from 
`AutoTopicCreationOverrideImpl.validateOverride`, which explicitly rejects 
`defaultNumPartitions` when `topicType=NON_PARTITIONED`.
   
   My plan is to:
   - Relax the validation so `defaultNumPartitions` is allowed for 
non-partitioned topics.
   - Treat the value as ignored when `topicType=NON_PARTITIONED`, preserving 
current runtime behavior.
   - Update the existing unit test (`testNumPartitionsOnNonPartitioned`) to 
reflect the new valid state.
   - Add coverage to ensure no behavior change for non-partitioned topic 
creation.
   
   This improves API usability while keeping backward compatibility.
   
   I’ll open a PR shortly addressing this.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to