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

kvserver: span assertions fire in replication layer #107521

Closed
tbg opened this issue Jul 25, 2023 · 4 comments · Fixed by #108775
Closed

kvserver: span assertions fire in replication layer #107521

tbg opened this issue Jul 25, 2023 · 4 comments · Fixed by #108775
Assignees
Labels
A-kv-replication Relating to Raft, consensus, and coordination. 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. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.

Comments

@tbg
Copy link
Member

tbg commented Jul 25, 2023

Describe the problem

See the detailed analysis here.

We need to make structural improvements to the span lifecycle (document, simplify, introduce invariant checks, testing, etc) that avoid this class of bugs.

See also #86547 and all the other work in CRDB-25287 (which is related and made important simplifications, but didn't focus on the span lifecycles in particular).

To Reproduce

Unclear

Jira issue: CRDB-30092

@tbg tbg added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-kv-replication labels Jul 25, 2023
@blathers-crl
Copy link

blathers-crl bot commented Jul 25, 2023

cc @cockroachdb/replication

@tbg tbg added the release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. label Jul 26, 2023
@blathers-crl
Copy link

blathers-crl bot commented Jul 26, 2023

Hi @tbg, please add branch-* labels to identify which branch(es) this release-blocker affects.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@pav-kv
Copy link
Collaborator

pav-kv commented Aug 7, 2023

Failures we've collected so far.

panic: use of Span after Finish. Span: /cockroach.roachpb.Internal/Batch. Finish previously called at: <stack not captured. Set debugUseAfterFinish> [recovered]
	panic: use of Span after Finish. Span: /cockroach.roachpb.Internal/Batch. Finish previously called at: <stack not captured. Set debugUseAfterFinish>

While applying entries:

While flushing proposals:

@lidorcarmel
Copy link
Contributor

@pavelkalinnikov looks like this is another one #107935 (comment) in case it helps you..

@craig craig bot closed this as completed in 2ac44e6 Aug 21, 2023
kvoli added a commit to kvoli/cockroach that referenced this issue Sep 6, 2023
`TestMultiRegionDataDriven` was skipped in cockroachdb#108107 due to finish
(tracing span) being called twice in raft reproposals cockroachdb#107521, which
 cockroachdb#108775 fixed.

Unskip the top level `TestMultiRegionDataDriven` test. Note
`/secondary_region` is still skipped due to a known allocator bug.

Informs: cockroachdb#98020
Epic: none
Release note: None
craig bot pushed a commit that referenced this issue Sep 6, 2023
110063: ccl/multiregionccl: unskip test multi region dd parent test r=rafiss a=kvoli

`TestMultiRegionDataDriven` was skipped in #108107 due to finish
(tracing span) being called twice in raft reproposals #107521, which
 #108775 fixed.

Unskip the top level `TestMultiRegionDataDriven` test. Note
`/secondary_region` is still skipped due to a known allocator bug.

Informs: #98020
Epic: none
Release note: None

Co-authored-by: Austen McClernon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-kv-replication Relating to Raft, consensus, and coordination. 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. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants