Skip to content

Retry fixes#82

Open
shaharuk-yb wants to merge 4 commits into
mainfrom
retry-fixes
Open

Retry fixes#82
shaharuk-yb wants to merge 4 commits into
mainfrom
retry-fixes

Conversation

@shaharuk-yb
Copy link
Copy Markdown

  • 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.

@shaharuk-yb shaharuk-yb requested a review from hbhanawat May 16, 2023 04:33

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()));
Copy link
Copy Markdown

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?

return retryDifferent;
}

public Histogram<TransactionType> getZeroRows() {
Copy link
Copy Markdown

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

@shaharuk-yb shaharuk-yb force-pushed the main branch 3 times, most recently from 398a578 to a33db7c Compare February 26, 2026 12:24
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