crossoverJie / crossoverJie/cim

AbstractConsistentHash新增节点bug

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
9.5k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

Bug 描述
多个服务器节点,只能增加最后一个节点

AbstractConsistentHash.add 的 clear(), 应该放在 process 的 for 循环外

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at AbstractConsistentHash.add and inspect how clear() is used around the process loop. Reproduce the behavior with multiple server nodes and verify that adding nodes retains all nodes rather than only the last one.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.