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

Optimize the publish logic of streaming load #350

Merged
merged 2 commits into from
Nov 26, 2018

Conversation

morningman
Copy link
Contributor

  1. Only collect all error replicas if publish task is timeout.
  2. Add 2 metrics to monitor the success and failure of txn.

1. Only collect all error replicas if publish task is timeout.
2. Add 2 metrics to monitor the success of failure of txn.

public boolean isPublishTimeout() {
// timeout is between 3 to 10 seconds.
long timeoutMillis = Math.min(Config.publish_version_timeout_second * publishVersionTasks.size() * 1000, 10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

set 10000 to a config, and the minimum value should be 5min

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Set it as Config.load_straggler_wait_second

@morningman morningman merged commit dedfccf into apache:master Nov 26, 2018
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.

3 participants