zhaohai666 opened a new pull request, #1484:
URL: https://github.com/apache/rocketmq-clients/pull/1484
## Purpose
Keep consuming during a broker/proxy outage by not treating a failed
assignment scan as an empty assignment list.
## Changes
- `golang/push_consumer.go`: `scanAssignments` returns early on a
`queryAssignments` error instead of falling through to
`syncProcessQueue(topic, nil)`, which dropped all process queues and
stalled
consumption until the next successful scan.
- The failure log now states that current assignments are kept.
- `golang/assignment_scan_test.go`: a failed scan must leave the cached
assignments and the process queue table untouched.
## Test plan
`go build ./...`, `go vet .`, `go test -count=1 .`. Regression verified in
#1473 against pre-fix behaviour on a local RocketMQ 5.5.1 cluster.
---
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]