baidu / baidu/uid-generator

BufferPaddingExecutor中的lastSecond的疑问

Open
#89 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

BufferPaddingExecutor中的lastSecond只有在创建BufferPaddingExecutor时赋值了一次,生成id时并没有再赋值。
这样的话会和自然时间偏差较大吧:比如5:00生成了一批id, 一直到8:00才有人使用,这时候lastSecond还停留在5:00

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate BufferPaddingExecutor and trace where lastSecond is initialized and where IDs are generated. Compare that behavior with the elapsed wall-clock time described in the issue, then identify the expected handling and verify it with the repository's existing tests or a focused regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.