Commit e0be0f0
authored
* fix 935: drain queue before verifying opcodes in all verification tests
Apply queue drain timing fix to tests that verify async opcodes.
These tests were checking opcodes immediately after async completion
without ensuring all cleanup work had been recorded to the opcode log,
causing intermittent test failures.
* Refine cdb test soak script
Refactor cdb test script to capture stacks independently, as well as
output log, stacks, and dmp for all abnormal exits (including Ctrl+C).
* Fix AsyncBlockTests: drain queue before verifying in al tests
Apply consistent queue drain pattern to 8 AsyncBlockTests before final queue
verification to eliminate timing races where cleanup work completes asynchronously
after XAsyncGetStatus() returns.
Root Cause:
The async framework's Cleanup operation is initiated by the provider but
completed asynchronously through the task queue. Tests checking queue state
or opcode snapshots immediately after XAsyncGetStatus() could race with the
pending Cleanup work, resulting in intermittent failures (heisenbug-like
behavior with "8 vs 9 opcodes" or "queue not empty" errors).
Solution:
All queue verification now preceded by explicit drain loop:
- Checks both Completion and Work ports
- 10ms sleep granularity, 2000ms timeout
- Ensures all async cleanup completes before verification
1 parent a84418b commit e0be0f0
2 files changed
Lines changed: 96 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
| 432 | + | |
434 | 433 | | |
435 | 434 | | |
436 | 435 | | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | 439 | | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
483 | 491 | | |
484 | 492 | | |
485 | 493 | | |
| |||
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
530 | | - | |
531 | | - | |
| 538 | + | |
532 | 539 | | |
533 | 540 | | |
534 | 541 | | |
535 | 542 | | |
536 | 543 | | |
537 | 544 | | |
| 545 | + | |
| 546 | + | |
538 | 547 | | |
539 | 548 | | |
540 | 549 | | |
| |||
605 | 614 | | |
606 | 615 | | |
607 | 616 | | |
608 | | - | |
609 | 617 | | |
610 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
611 | 627 | | |
612 | 628 | | |
613 | 629 | | |
| |||
640 | 656 | | |
641 | 657 | | |
642 | 658 | | |
643 | | - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
644 | 667 | | |
645 | 668 | | |
646 | 669 | | |
| |||
674 | 697 | | |
675 | 698 | | |
676 | 699 | | |
677 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
678 | 708 | | |
679 | 709 | | |
680 | 710 | | |
| |||
701 | 731 | | |
702 | 732 | | |
703 | 733 | | |
704 | | - | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
705 | 742 | | |
706 | 743 | | |
707 | 744 | | |
| |||
815 | 852 | | |
816 | 853 | | |
817 | 854 | | |
818 | | - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
819 | 863 | | |
820 | 864 | | |
821 | 865 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
112 | 130 | | |
113 | | - | |
114 | 131 | | |
| 132 | + | |
115 | 133 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 134 | + | |
130 | 135 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 136 | + | |
146 | 137 | | |
147 | 138 | | |
148 | 139 | | |
| |||
152 | 143 | | |
153 | 144 | | |
154 | 145 | | |
| 146 | + | |
155 | 147 | | |
156 | 148 | | |
157 | 149 | | |
| |||
160 | 152 | | |
161 | 153 | | |
162 | 154 | | |
| 155 | + | |
163 | 156 | | |
164 | 157 | | |
165 | 158 | | |
166 | 159 | | |
167 | | - | |
| 160 | + | |
168 | 161 | | |
169 | | - | |
170 | 162 | | |
171 | 163 | | |
172 | 164 | | |
| |||
0 commit comments