You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/21 12:54:20 UTC

[GitHub] [rocketmq-client-go] ShannonDing opened a new issue, #861: lack of setting new value for pullThresholdSizeForTopic after size was calc.

ShannonDing opened a new issue, #861:
URL: https://github.com/apache/rocketmq-client-go/issues/861

   after rebalance, PullThresholdSizeForTopic is not set to new value.
   ```
   if count > 0 {
   		if pc.option.PullThresholdForTopic != -1 {
   			newVal := pc.option.PullThresholdForTopic / count
   			if newVal == 0 {
   				newVal = 1
   			}
   			rlog.Info("The PullThresholdForTopic is changed", map[string]interface{}{
   				rlog.LogKeyValueChangedFrom: pc.option.PullThresholdForTopic,
   				rlog.LogKeyValueChangedTo:   newVal,
   			})
   			pc.option.PullThresholdForTopic = newVal
   		}
   
   		if pc.option.PullThresholdSizeForTopic != -1 {
   			newVal := pc.option.PullThresholdSizeForTopic / count
   			if newVal == 0 {
   				newVal = 1
   			}
   			rlog.Info("The PullThresholdSizeForTopic is changed", map[string]interface{}{
   				rlog.LogKeyValueChangedFrom: pc.option.PullThresholdSizeForTopic,
   				rlog.LogKeyValueChangedTo:   newVal,
   			})
   		}
   	}
   ```


-- 
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: dev-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq-client-go] ShannonDing closed issue #861: lack of setting new value for pullThresholdSizeForTopic after size was calc.

Posted by GitBox <gi...@apache.org>.
ShannonDing closed issue #861: lack of setting new value for pullThresholdSizeForTopic after size was calc.
URL: https://github.com/apache/rocketmq-client-go/issues/861


-- 
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: dev-unsubscribe@rocketmq.apache.org

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