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

Retry fixes #82

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Retry fixes #82

wants to merge 4 commits into from

Conversation

shaharuk-yb
Copy link

  • added custom transaction status ZERO_ROWS for queries returning zero rows. If any query in a transaction returns zero rows, this transaction will be added. This does not get retried.

@@ -452,7 +456,7 @@ protected final void doWork(DatabaseType databaseType, TransactionType transacti
conn.rollback();

if (isRetryable(ex)) {
LOG.debug(String.format("Retryable SQLException occurred during [%s]... current retry attempt [%d], max retry attempts [%d], sql state [%s], error code [%d].", transactionType, retryCount, maxRetryCount, ex.getSQLState(), ex.getErrorCode()), ex);
LOG.debug(String.format("Retryable SQLException occurred during [%s]... current retry attempt [%d], max retry attempts [%d], sql state [%s], error code [%d].", transactionType, retryCount, maxRetryCount, ex.getSQLState(), ex.getErrorCode()));

Choose a reason for hiding this comment

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

What is the reason to remove ex from the exception log?

@@ -84,6 +85,10 @@ public Histogram<TransactionType> getRetryDifferent() {
return retryDifferent;
}

public Histogram<TransactionType> getZeroRows() {

Choose a reason for hiding this comment

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

Can we print number of zero_rows to the command line o/p just like rejected transactions? It will help while running workloads manually

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