Document collection behavior of transaction_contention_events

Open Beginner friendly
#20,346 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale

Research direction

Read the transaction_contention_events section on the linked crdb-internal.html page, then review the expected collection behavior described in issue 149613's linked comment. Update the documentation to explain when contention events are collected and how the table should be used, so its behavior no longer appears random.

Written by the indexing model from the issue text.

Description

C-doc-improvement

Page: https://www.cockroachlabs.com/docs/v25.3/crdb-internal.html#transaction_contention_events

What is the reason for your feedback?

[X] Missing the information I need

[ ] Too complicated

[ ] Out of date

[ ] Something is broken

[ ] Other

Additional details

In https://github.com/cockroachdb/cockroach/issues/149613#issuecomment-3225419219, @alyshanjahani-crl described the expected collection behavior of the crdb_internal.transaction_contention_events table.

Without knowing what the collection behavior of the table is supposed to be, the behavior of the table is confusing: it appears random that sometimes a contention event is recorded and sometimes it isn't.

Documenting the collection behavior of the table would avoid this confusion, avoid the appearance of a bug, and explain how the table can be used.

Jira issue: DOC-14823

Dominant language
HTML
Stars
212
Forks
477
Avg merge
40m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cockroachdb/docs

All issues in cockroachdb/docs

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.