Commit beeb29a
committed
kvcoord: set ResumeSpan on unprocessed point requests
Previously, if batch execution was stopped early in dist sender because
of MaxSpanRequestKeys or TargetBytes, the returned batch could have
non-Get point-requests requests that were not processed but which didn't
have a resume-span sent.
The resume span was not set since SQL does not create batches with a mix
of read and write requests with MaxSpanRequestKeys or TargetBytes set;
however, KVNemesis will soon create such batches, so we'd like to handle
them correctly. Further, setting the ResumeSpan allows the
txnWriteBuffer to double-check that all writes were processed just in
case a bug results in the write buffer producing a batch that is
partially processed.
Fixes #153357
Release note: None1 parent e6fb570 commit beeb29a
File tree
2 files changed
+78
-6
lines changed- pkg/kv/kvclient/kvcoord
2 files changed
+78
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2411 | 2411 | | |
2412 | 2412 | | |
2413 | 2413 | | |
2414 | | - | |
2415 | | - | |
| 2414 | + | |
| 2415 | + | |
2416 | 2416 | | |
2417 | 2417 | | |
2418 | 2418 | | |
| |||
2443 | 2443 | | |
2444 | 2444 | | |
2445 | 2445 | | |
2446 | | - | |
2447 | | - | |
2448 | | - | |
2449 | | - | |
2450 | 2446 | | |
2451 | 2447 | | |
2452 | 2448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4535 | 4535 | | |
4536 | 4536 | | |
4537 | 4537 | | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
0 commit comments