-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: main
Are you sure you want to change the base?
Retry fixes #82
Conversation
shaharuk-yb
commented
May 16, 2023
- 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())); |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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