Comments (4)
The re-subscribe does not rely on the async logic. It is by default done in the ZkClient.
The real problem is the race condition when updating the Helix cache. This prevents the controller from re-calculating the new mapping. Will update with more detail next week.
from helix.
The root cause of the issue is a race condition in Helix cache refresh logic. Basically, Helix relies on the ZK notification path to set up 2 things:
- If the current assignment is still valid.
- If the data cache needs to be refreshed.
The race condition causes these 2 checks to have a different result. The assignment was not invalidated. But the cache was updated. As a result, the rebalancer refused to calculate a new mapping even knows the latest IdealState.
The impact is limited in the CUSTOM rebalance mode only. Because the fist check is done for custom rebalancer only.
from helix.
@Jackie-Jiang Could you please help to take a look at the proposed fix? Thanks.
from helix.
Close this ticket since the fix has been merged to master. We will have a release soon next week with one more critical fix.
from helix.
Related Issues (20)
- [Failed CI Test] testMarkEvacuationAfterEMM(org.apache.helix.integration.rebalancer.TestInstanceOperation) HOT 2
- [Failed CI Test] deleteFromResourceIdealState(org.apache.helix.rest.server.TestResourceAccessor) HOT 1
- [Failed CI Test] testGetClusters(org.apache.helix.rest.server.TestClusterAccessor) HOT 8
- [Failed CI Test] testDifferentTasks(org.apache.helix.integration.task.TestIndependentTaskRebalancer) HOT 6
- State transition not performed with shortest distance HOT 3
- [Failed CI Test] afterTest(org.apache.helix.rest.server.TestPartitionAssignmentAPI) HOT 5
- Support Simple Greedy Rebalance Strategy
- upgrade jackson-databind to 2.12.7.1 HOT 1
- Fix PreferenceList Ordering Changes during Maintenance Mode
- Provide JDK 1.8 (backward) compatibility of helix components
- NPE Issues when we add a WAGED resource without instances against the resource tag
- [Failed CI Test] testAggregateMetrics(org.apache.helix.monitoring.mbeans.TestClusterAggregateMetrics) HOT 1
- [Failed CI Test] testEnqueueJobsThrottle(org.apache.helix.task.TestTaskCreateThrottling) HOT 1
- [Failed CI Test] testNodeSwap(org.apache.helix.integration.rebalancer.TestInstanceOperation) HOT 10
- [Failed CI Test] testResourceThrottle(org.apache.helix.integration.TestPartitionMovementThrottle) HOT 1
- Add an API endpoint to allow a participant to set the current state of a partition stuck in any state to ERROR.
- Changing resource partition count via Helix Rest does not work reliably HOT 6
- [Failed CI Test] testHappyPathExtOpZkCacheBaseDataAccessor(org.apache.helix.manager.zk.TestZkCacheAsyncOpSingleThread) HOT 1
- [Failed CI Test] testInconsistentStateEventProcessing(org.apache.helix.integration.spectator.TestRoutingTableProviderFromCurrentStates) HOT 6
- [Failed CI Test] testTargetedTaskTwoCurrentStates(org.apache.helix.integration.task.TestTaskSchedulingTwoCurrentStates) HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helix.