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

Set retry limit on the DB #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Daniel-B-Smith
Copy link

By default, the FDB DB object will retry a transaction indefinitely. That behavior can cause a YCSB run to hang when the database become unavailable. In particular, the continued traffic from the retries can interfere with the cluster's ability to recover. This change adds a parameter that limits how many retries are used for every transaction, which defaults to 5.

@@ -60,6 +60,8 @@
private static final String EXTERNAL_CLIENT_DIRECTORY_DEFAULT = ".";
private static final String TRACE_DIRECTORY = "foundationdb.tracedirectory";
private static final String TRACE_DIRECTORY_DEFAULT = "";
private static final String RETRY_LIMIT = "foundationdb.retrylimit";
private static final String RETRY_LIMIT_DEFAULT = "5";
Copy link
Owner

Choose a reason for hiding this comment

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

This should default to zero (retry forever). FDB often goes unavailable for minutes at a time during load, which would create holes in the keyspace. In turn, it's likely that YCSB's verify will notice, and declare the database corrupted.

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