-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: contention event store main tracking issue #74485
Labels
A-sql-observability
Related to observability of the SQL layer
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Comments
Azhng
added
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
A-sql-observability
Related to observability of the SQL layer
T-sql-observability
labels
Jan 6, 2022
Azhng
changed the title
sql: contention event store main tracking issue.
sql: contention event store main tracking issue
Jan 6, 2022
Azhng
added a commit
to Azhng/cockroach
that referenced
this issue
Jan 11, 2022
Previously, the transaction ID cache recorded the mapping from transaction ID to transaction fingerprint ID once the transaction finished executing. This introduced a problem where, when we queried the transaction ID cache with a transaction ID, and we were not able to distinguish between the case where transaction ID entry was being evicted, or the transaction with that ID was still executing. This commit addresses this problem by immediately starting a write operation to write a provisional transaction fingerprint ID into transaction ID cache once the transaction ID for a transaction is determined. This is then followed up with additional write operation once the transaction finishes execution where the transaction fingerprint ID is then determined. Since transaction ID Cache always returns the most-recent written value for a given key, the the provisional transaction fingerprint ID will not be returned once the actual transaction fingerprint ID is written. Related cockroachdb#74485. Release note: None
Azhng
added a commit
to Azhng/cockroach
that referenced
this issue
Jan 19, 2022
Previously, the transaction ID cache recorded the mapping from transaction ID to transaction fingerprint ID once the transaction finished executing. This introduced a problem where, when we queried the transaction ID cache with a transaction ID, and we were not able to distinguish between the case where transaction ID entry was being evicted, or the transaction with that ID was still executing. This commit addresses this problem by immediately starting a write operation to write a provisional transaction fingerprint ID into transaction ID cache once the transaction ID for a transaction is determined. This is then followed up with additional write operation once the transaction finishes execution where the transaction fingerprint ID is then determined. Since transaction ID Cache always returns the most-recent written value for a given key, the the provisional transaction fingerprint ID will not be returned once the actual transaction fingerprint ID is written. Related cockroachdb#74485. Release note: None
Azhng
added a commit
to Azhng/cockroach
that referenced
this issue
Jan 26, 2022
Previously, the transaction ID cache recorded the mapping from transaction ID to transaction fingerprint ID once the transaction finished executing. This introduced a problem where, when we queried the transaction ID cache with a transaction ID, and we were not able to distinguish between the case where transaction ID entry was being evicted, or the transaction with that ID was still executing. This commit addresses this problem by immediately starting a write operation to write a provisional transaction fingerprint ID into transaction ID cache once the transaction ID for a transaction is determined. This is then followed up with additional write operation once the transaction finishes execution where the transaction fingerprint ID is then determined. Since transaction ID Cache always returns the most-recent written value for a given key, the the provisional transaction fingerprint ID will not be returned once the actual transaction fingerprint ID is written. Related cockroachdb#74485. Release note: None
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-sql-observability
Related to observability of the SQL layer
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
This is the meta tracking issue for the new Contention Event Registry described in the Contention Even Store RFC
In scope for 22.1
Infrastructure
Performance
Interface
Post 22.1
Data Persistence
UX
Optimization:
connExecutor
sThe text was updated successfully, but these errors were encountered: