baidu / baidu/uid-generator

Synchronized DefaultUidGenerator & ParallelGenerate

Open
#66 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

DefaultUidGenerator 加了intrinsic lock
DefaultUidGeneratorTest.testParallelGenerate的意义何在?
这种测试用例,只会误导人!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading DefaultUidGenerator and DefaultUidGeneratorTest.testParallelGenerate to understand the intrinsic lock and what the parallel test currently exercises. Clarify the intended synchronization behavior with maintainers, then update the test or its surrounding documentation so its purpose and expected outcome are unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.