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

concurrency: invalid locks-wait in jaeger trace #130075

Open
tbg opened this issue Sep 4, 2024 · 1 comment
Open

concurrency: invalid locks-wait in jaeger trace #130075

tbg opened this issue Sep 4, 2024 · 1 comment
Labels
branch-master Failures and bugs on the master branch. C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-support Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs P-3 Issues/test failures with no fix SLA T-kv KV Team

Comments

@tbg
Copy link
Member

tbg commented Sep 4, 2024

Describe the problem

Was looking at a statement bundle1 and noticed this:

image

The locks-wait is clearly bogus. The real wait in this case should be O(100ms).

For this support escalation, this bug is inconsequential since we have the entire statement trace and can derive the actual wait times. But if this data is used for anything, it would produce wildly incorrect results.

The tag comes from this code:

/pkg/kv/kvserver/concurrency/lock_table_waiter.go#L1175-L1180

	if lockWait != 0 {
		tags = append(tags, attribute.KeyValue{
			Key:   tagWaited,
			Value: attribute.StringValue(string(humanizeutil.Duration(lockWait))),
		})
	}

Jira issue: CRDB-41866

Footnotes

  1. stmt-bundle-999296444512665639 in https://github.com/cockroachlabs/support/issues/3079

@tbg tbg added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-support Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs T-kv KV Team labels Sep 4, 2024

This comment was marked as resolved.

@tbg tbg added the branch-master Failures and bugs on the master branch. label Sep 4, 2024
@nicktrav nicktrav added the P-3 Issues/test failures with no fix SLA label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-master Failures and bugs on the master branch. C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-support Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs P-3 Issues/test failures with no fix SLA T-kv KV Team
Projects
None yet
Development

No branches or pull requests

2 participants