Skip to content

Improve only one region need localNode in regionAwarePolicy#4092

Open
TakaHiR07 wants to merge 1 commit intoapache:masterfrom
TakaHiR07:improve_regionAware_need_only_one_localNode
Open

Improve only one region need localNode in regionAwarePolicy#4092
TakaHiR07 wants to merge 1 commit intoapache:masterfrom
TakaHiR07:improve_regionAware_need_only_one_localNode

Conversation

@TakaHiR07
Copy link
Contributor

Motivation

Now in regionAwarePolicy, each region has the same localNode. Such as:

  • region1 - localNode is /region1/rack1
  • region2 - localNode is /region1/rack1
  • region3 - localNode is /region1/rack1

This is not correct and would generate more confusing warn log in newEnsemble()
企业微信截图_f12217d6-af21-41d6-b2de-c1c484a0d788

This pr is a supplement of #4091. We should fix the localNode not update first.

Changes

  1. only one region need localNode. So reset the localNode in other region
  2. add test

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

Comments