8000 BugFix 3.3: adjust SetThrottle() to only call GetDelayToken() first time. by matthewvon · Pull Request #5854 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

BugFix 3.3: adjust SetThrottle() to only call GetDelayToken() first time. #5854

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

Merged
merged 2 commits into from
Jul 12, 2018

Conversation

matthewvon
Copy link
Contributor

The SetThrottle() routine previously replaced its DelayToken every time called. This procedure was intended to keep our calculated bytes-per-second active instead of any other value that rocksdb's code might subsequently set. Unfortunately, The GetDelayToken() code within rocksdb also clears all timings currently in use and forces a big wait upon the very next write. This could happen multiple times a second under heavy load.

The code now retrieves a DelayToken only if one is not previously held. Subsequent rewrites of our bytes-per-second value now use a different API that does not clear current timings.

@ghost ghost assigned matthewvon Jul 12, 2018
@ghost ghost added the 2 - Working label Jul 12, 2018
@matthewvon matthewvon changed the title adjust SetThrottle() to only call GetDelayToken() first time. BugFix 3.3: adjust SetThrottle() to only call GetDelayToken() first time. Jul 12, 2018
Copy link
Member
@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neunhoef neunhoef merged commit 225095d into 3.3 Jul 12, 2018
@ghost ghost removed the 2 - Working label Jul 12, 2018
@fceller fceller deleted the bug-3.3/mv-fewer-throttle-tokens branch August 9, 2018 09:41
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

Successfully merging this pull request may close these issues.

2 participants
0