Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pushToReadyQueue()与removeFromBucket()需要考虑事务 #19

Open
hb-chen opened this issue Aug 27, 2019 · 0 comments
Open

pushToReadyQueue()与removeFromBucket()需要考虑事务 #19

hb-chen opened this issue Aug 27, 2019 · 0 comments

Comments

@hb-chen
Copy link

hb-chen commented Aug 27, 2019

在Push、Pop和tickHandler会使用<-bucketNameChan分配bucket
而在tickHandler中需要先pushToReadyQueue(),再removeFromBucket(),这个过程中如果Job被Pop(),并且pop后pushToBucket()取到的bucketName与原来相同,这时候时序会出问题,pop向bucket中写入新的timestamp,但随后被remove,导致bucket中的Job丢失

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

No branches or pull requests

1 participant