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

HDDS-8230. Let ReplicationManager decide the timeout for commands in Datanodes #4453

Merged
merged 5 commits into from Mar 23, 2023

Conversation

sodonnel
Copy link
Contributor

What changes were proposed in this pull request?

Right now, "hdds.scm.replication.command.deadline.factor" is a fraction. For long durations such as 60 minutes, the difference between SCM deadline and Datanode deadline will be 60 - 60 * 0.9, which is 6 minutes. This is a significant difference, so perhaps this configuration should be a duration instead, like 30 seconds.

Currently the APIs provided by RM expose the DN deadline as a parameter. We could remove this and just let the RM decide a deadline for commands in the DN.

This PR removes the parameter hdds.scm.replication.command.deadline.factor and also passing the datanodeDeadline via the various methods. Instead we now have hdds.scm.replication.event.timeout.datanode.offset, defaulting to 30s, which is the amount of time we subtract from event.timeout (SCM deadline) to get the datanode deadline.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-8230

How was this patch tested?

Existing test cover this.

@sodonnel sodonnel changed the title Hdds 8230. Let ReplicationManager decide the timeout for commands in Datanodes HDDS-8230. Let ReplicationManager decide the timeout for commands in Datanodes Mar 22, 2023
Copy link
Contributor

@siddhantsangwan siddhantsangwan left a comment

Choose a reason for hiding this comment

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

Looks good! I just have one comment about the deadline calculation.

@adoroszlai adoroszlai merged commit 181558a into apache:master Mar 23, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants