tomjo commented on PR #1107:
URL: 
https://github.com/apache/pulsar-client-go/pull/1107#issuecomment-1780706882

   We're using a component that publishes messages to a topic with a generated 
name, so we want to use topic auto creation for the namespace so that these 
topics are automatically created. We don't need partitions for these topics so 
we want the default for topic auto creation to be non-partitioned. This is not 
possible now (see linked issue) since the Partitions int field in the struct 
has a default value of 0 causing it to be added to the request body of the api 
call, which pulsar rejects with an error. By making it a pointer, it can be nil 
and it is not serialized in the body allowing the api call to succeed in 
setting the auto topic creation policy to enabled and non-partitioned.
   
   We're currently using topic auto creation with type partitioned and 1 
partition which works but it would be nicer if the client supports what the 
rest api supports


-- 
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