Skip to content

cli: debug zip uses read-only range probe#108313

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
dhartunian:debug-zip-read-only-probe
Aug 8, 2023
Merged

cli: debug zip uses read-only range probe#108313
craig[bot] merged 1 commit intocockroachdb:masterfrom
dhartunian:debug-zip-read-only-probe

Conversation

@dhartunian
Copy link
Copy Markdown
Collaborator

@dhartunian dhartunian commented Aug 7, 2023

To reduce the chance of corruption issues when run against older clusters, the recently added use of crdb_internal.probe_ranges is modified to use a read probe instead of a write probe.

See discussion in #107720

Release note: None
Epic: None

@dhartunian dhartunian requested review from a team, j82w, joshimhoff and nvb August 7, 2023 19:43
@dhartunian dhartunian requested a review from a team as a code owner August 7, 2023 19:43
@dhartunian dhartunian requested review from Santamaura and removed request for a team August 7, 2023 19:43
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@abarganier abarganier left a comment

Choose a reason for hiding this comment

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

:lgtm: - just one nit re: an important comment that I think we should have.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @dhartunian, @j82w, @joshimhoff, @nvanbenschoten, and @Santamaura)


pkg/cli/zip_table_registry.go line 233 at r1 (raw file):

	"crdb_internal.probe_ranges_1s_read_limit_100": {
		customQueryRedacted:   `SELECT * FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'read') WHERE error != '' ORDER BY end_to_end_latency_ms DESC LIMIT 100;`,
		customQueryUnredacted: `SELECT * FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'read') WHERE error != '' ORDER BY end_to_end_latency_ms DESC LIMIT 100;`,

nit: is it worth putting a comment here noting the potential dangers of using write here, so future maintainers have that context?

Copy link
Copy Markdown
Collaborator

@joshimhoff joshimhoff left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks. I agree with @abarganier that we should add a comment about the corruption bug.

To reduce the chance of corruption issues when run against older
clusters, the recently added use of 'crdb_internal.probe_ranges` is
modified to use a `read` probe instead of a `write` probe.

See discussion in cockroachdb#107720

Release note: None
Epic: None
@dhartunian dhartunian force-pushed the debug-zip-read-only-probe branch from d89c92b to 0f44cac Compare August 7, 2023 21:39
Copy link
Copy Markdown
Collaborator Author

@dhartunian dhartunian left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @j82w, @nvanbenschoten, and @Santamaura)


pkg/cli/zip_table_registry.go line 233 at r1 (raw file):

Previously, abarganier (Alex Barganier) wrote…

nit: is it worth putting a comment here noting the potential dangers of using write here, so future maintainers have that context?

Done.

@dhartunian
Copy link
Copy Markdown
Collaborator Author

bors r=joshimhoff

Copy link
Copy Markdown
Collaborator

@joshimhoff joshimhoff left a comment

Choose a reason for hiding this comment

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

LGTM

@joshimhoff
Copy link
Copy Markdown
Collaborator

thx for the fix!

Copy link
Copy Markdown
Contributor

@j82w j82w left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @nvanbenschoten and @Santamaura)

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 8, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 8, 2023

Build succeeded:

@craig craig bot merged commit 0d110cd into cockroachdb:master Aug 8, 2023
@dhartunian dhartunian deleted the debug-zip-read-only-probe branch February 5, 2024 20:37
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.

5 participants