zhaohai666 opened a new pull request, #1485:
URL: https://github.com/apache/rocketmq-clients/pull/1485

   ## Purpose
   
   Do not hide settlement failures from SimpleConsumer callers.
   
   ## Changes
   
   - `golang/simple_consumer.go`: `changeInvisibleDuration` updates
     `messageView.ReceiptHandle` only when the RPC succeeded; `Ack` converts a
     non-OK response status into `*ErrRpcStatus` and returns it.
   - `golang/simple_consumer_test.go`: a non-OK ack must surface as
     `ErrRpcStatus`; a failed change-invisible-duration request must leave the 
old
     receipt handle intact.
   
   ## Test plan
   
   `go build ./...`, `go vet .`, `go test -count=1 .`. Verified against a real
   cluster in #1473 with an expired receipt handle.
   
   ---
   
   This PR is part of the split of #1473 into smaller, single-feature PRs for 
easier
   review. #1473 was merged as one large change; this branch reconstructs 
exactly one
   of its features as an atomic commit, based on `master`.
   
   Verified locally in `golang/`: `go build ./...`, `go vet .`, `go test 
-count=1 .`.
   
   > Note: #1473 is already merged upstream, so this PR is the atomic
   > reconstruction of one feature for independent review only.
   


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