Skip to content

Refactor/ucore sender cleanup - #3921

Merged
PanternBao merged 2 commits into
3.20.11.99/ltsfrom
refactor/ucore-sender-cleanup
Nov 17, 2026
Merged

PanternBao merged 2 commits into
3.20.11.99/ltsfrom
refactor/ucore-sender-cleanup

Conversation

@PanternBao

Copy link
Copy Markdown
Member

Reason:
  BUG #. or Improve #.
Type:
  BUG/Improve
Influences:
   fix xx

- make ipList volatile, it is replaced by the NODES_UCORE_LISTENER thread
  and read by the threads that build error messages
- drop the "{ x; return null; }" wrappers around void rpcs, the generic
  call() takes the stub's return value as is
- use Status.fromThrowable instead of a hand written cause chain walk
- correct the retry policy comment: under pick_first a retry stays on the
  same node, only a connection failure moves to the next one
- add the missing blank line before lock()

No behavior change.
UcoreSender.ipList was a third copy of the node list, next to the one in
ClusterConfig (persisted to cluster.cnf) and the one in the resolver
provider that actually feeds the channel. It was only read for log and
error messages.

- seed the provider from ClusterConfig in initChannel, then let the
  provider own the list; ucore's node updates replace it there
- read the list for messages through UcoreNameResolverProvider#getIps
- drop the duplicated ipList.addAll in initConInfo and initCluster, which
  added every ip twice when both were called

No change to which nodes the channel uses.
@github-actions
github-actions Bot requested a review from LUAgam November 17, 2026 09:50
@PanternBao
PanternBao merged commit e42ee0a into 3.20.11.99/lts Nov 17, 2026
4 checks passed
@PanternBao
PanternBao deleted the refactor/ucore-sender-cleanup branch November 17, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant