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

Add slow_flush_log_threshold parameter #1370

Merged
merged 3 commits into from
Dec 14, 2016

Conversation

repeatedly
Copy link
Member

master version of #1366

@repeatedly repeatedly added enhancement Feature request or improve operations v0.14 labels Dec 14, 2016
@@ -985,21 +987,28 @@ def try_flush
end

begin
chunk_write_start = Time.now
Copy link
Member

Choose a reason for hiding this comment

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

Use Process.clock_gettime(PROCESS_CLOCK_ID) instead of Time.now.
Time.now is affected by system clock modification.

@@ -1019,6 +1028,14 @@ def try_flush
end
end

def check_slow_flush(start)
elapsed_time = Time.now - start
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

@repeatedly
Copy link
Member Author

Applied review.

@tagomoris
Copy link
Member

LGTM.

@repeatedly repeatedly merged commit acc7e3f into master Dec 14, 2016
@repeatedly repeatedly deleted the add-slow_flush_log_threshold-parameter branch December 14, 2016 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations v0.14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants