cockroachdb / cockroachdb/cockroach

sql/sqlstats/sslocal: TestAssociatingStmtStatsWithTxnFingerprint failed

Open
#173,581 3 comments 0 reactions 0 assignees View on GitHub
branch-master C-test-failure O-robot T-observability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

sql/sqlstats/sslocal.TestAssociatingStmtStatsWithTxnFingerprint [failed](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Ci_TestsAwsLinuxArm64_UnitTests/21475033?buildTab=log) with [artifacts](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Ci_TestsAwsLinuxArm64_UnitTests/21475033?buildTab=artifacts#/) on master @ [b118c7ce9b6fe3da20a528af30f77e846ec9e281](https://github.com/cockroachdb/cockroach/commits/b118c7ce9b6fe3da20a528af30f77e846ec9e281):

```
=== RUN TestAssociatingStmtStatsWithTxnFingerprint
test_log_scope.go:172: test logs captured to: /artifacts/tmp/_tmp/5e8d9296e8c352d3ee30298955d1f8e0/logTestAssociatingStmtStatsWithTxnFingerprint1948376757
test_log_scope.go:82: use -show-logs to present logs inline
sql_stats_test.go:652: -- test log scope end --
test logs left over in: /artifacts/tmp/_tmp/5e8d9296e8c352d3ee30298955d1f8e0/logTestAssociatingStmtStatsWithTxnFingerprint1948376757
--- FAIL: TestAssociatingStmtStatsWithTxnFingerprint (46.86s)
=== RUN TestAssociatingStmtStatsWithTxnFingerprint/enabled=false
sql_stats_test.go:629: condition failed to evaluate within 45s: from sql_stats_test.go:643: expected 4, got 7

goroutine dump: /artifacts/tmp/_tmp/5e8d9296e8c352d3ee30298955d1f8e0/goroutine_dump_3450358755.txt
--- FAIL: TestAssociatingStmtStatsWithTxnFingerprint/enabled=false (45.70s)
```
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

/cc @cockroachlabs/obs-prs

[Improve this report!](https://github.com/cockroachdb/cockroach/tree/master/pkg/cmd/bazci/githubpost/issues)

Jira issue: CRDB-66894

Contributor guide

Open the contributing guide

Research direction

Start with sql/sqlstats/sslocal/sql_stats_test.go and run TestAssociatingStmtStatsWithTxnFingerprint, focusing on the enabled=false subtest and its condition at line 643. Compare the TeamCity test logs and goroutine dump with the expected value 4 and observed value 7. Done means the test completes successfully with the intended statement-stat association.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sql
Domain
databases, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.