You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/30 16:06:57 UTC

[GitHub] [pulsar-client-go] wuYin commented on a change in pull request #579: Ignore partitions shrink in client side

wuYin commented on a change in pull request #579:
URL: https://github.com/apache/pulsar-client-go/pull/579#discussion_r680040665



##########
File path: pulsar/producer_impl.go
##########
@@ -177,7 +177,14 @@ func (p *producer) internalCreatePartitionsProducers() error {
 
 	if oldProducers != nil {
 		oldNumPartitions = len(oldProducers)
-		if oldNumPartitions == newNumPartitions {
+		if newNumPartitions < oldNumPartitions {

Review comment:
       Thank you for reply.
   - There is no forced topic deletion or other admin operation this day.
   - [brokerDeleteInactiveTopicsEnabled](https://github.com/apache/pulsar/blob/master/conf/broker.conf#L156) has configured as false.
   - proxy and broker logs were checked, and there is not much valuable information, most is INFO level messages.
   - only 20% producers has this error, it's weird.
   
   maybe there is a concurrency issue in broker ownership cache that leads to data corruption?
   
   In fact, client no need to do this detection, but the server needs to locate and solve the decrease problem.




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

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