Skip to content

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.

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