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

release-19.1: sql: fix the auto-retry counter in stats + log it in statement/audit logs #38035

Merged
merged 3 commits into from Jun 19, 2019

Conversation

knz
Copy link
Contributor

@knz knz commented Jun 5, 2019

Backport 1/2 commits from #38028.
Backport 1/1 commits from #38051.
Backport 1/1 commits from #38078.

/cc @cockroachdb/release


@knz knz requested review from jordanlewis and a team June 5, 2019 15:46
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@bdarnell
Copy link
Member

bdarnell commented Jun 5, 2019

I don't think we should backport the second commit. Changing the exec/audit log format in a patch release is a bad idea. (Adding a column at the end is backwards-compatible if you've designed your parser to accept unknown extra columns, but not everyone does that right and it's not something we want to risk in a patch release).

@knz
Copy link
Contributor Author

knz commented Jun 6, 2019

Ok I removed the 2nd commit.

knz added 3 commits June 18, 2019 19:37
The statement statistics contain a column `max_retries` intended
to show the maximum number of times a statement was retried.

Due to a bug, this counter was previously always zero, *even for
statements that were actually retried*. We hadn't noticed because
there was no test to ensure that the value would increase.

This patch fixes the bugs and verifies that the value does indeed
increase.

Release note (bug fix): The `max_retries` column in the statement
statistics now properly displays the maximum number of times
a statement was retried.
The retry timeout was too short for `make stress`.
Instead this patch copies the timeout already used in the other
logic test file `txn`. I verified manually that `make stress`
is pleased with the new timeout.

Also fix a typo in the test comment.

Release note: None
@knz
Copy link
Contributor Author

knz commented Jun 18, 2019

@jordanlewis friendly ping

@jordanlewis
Copy link
Member

LGTM, merge away. Thanks @knz!

@knz knz merged commit 93cd788 into cockroachdb:release-19.1 Jun 19, 2019
@knz knz deleted the backport19.1-38028 branch June 19, 2019 06:07
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.

None yet

4 participants