You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2021/12/28 07:19:56 UTC
[GitHub] [incubator-inlong] gosonzhang commented on a change in pull request #2067: [INLONG-2066][inlong-tubemq] Confirm the message correctly in Go SDK
gosonzhang commented on a change in pull request #2067:
URL: https://github.com/apache/incubator-inlong/pull/2067#discussion_r775760113
##########
File path: inlong-tubemq/tubemq-client-twins/tubemq-client-go/client/consumer_impl.go
##########
@@ -280,7 +280,8 @@ func (c *consumer) Confirm(confirmContext string, consumed bool) (*ConsumerResul
return nil, errs.New(errs.RetErrConfirmTimeout, "Not found the partition by confirm_context!")
}
- rsp, err := c.sendConfirmReq2Broker(partition)
+ defer c.rmtDataCache.ReleasePartition(true, c.subInfo.IsFiltered(topic), confirmContext, consumed)
Review comment:
ye, not a problem. I checked the defer usage of Go, which is similar to the finally approach in Java, it will be called before processing exit.
--
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@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org