BewareMyPower commented on pull request #12818:
URL: https://github.com/apache/pulsar/pull/12818#issuecomment-1016206450


   BTW, could you check 
https://github.com/apache/pulsar/issues/12629#issuecomment-1003723222? I have 
the same concern that for a partitioned topic, what's the behavior when an 
individual partition's properties was set?
   
   For example, I ran following commands:
   
   ```bash
   curl -L 
http://localhost:8080/admin/v2/persistent/public/default/xxx/partitions -X PUT 
-H 'Content-Type: application/json' -d 
'{"partitions":"3","properties":{"k1":"v1","k2":"v2"}}'
   curl -L 
http://localhost:8080/admin/v2/persistent/public/default/xxx-partition-0 -X 
DELETE
   curl -L 
http://localhost:8080/admin/v2/persistent/public/default/xxx-partition-0 -X PUT 
-H 'Content-Type: application/json' -d '{"k3":"v3"}'
   ```
   
   1. Create a partitioned topic `xxx` with 3 partitions and properties `k1 -> 
v1, k2 -> v2`.
   2. Delete the 1st partition (`xxx-partition-0`).
   3. Create the 1st partition with properties `k3 -> v3`.
   
   The 3rd step works well but I think **it should be prevented**. /cc 
@eolivelli Is it what you concerned?


-- 
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-unsubscr...@pulsar.apache.org

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


Reply via email to