Commit e06b5d1
152745: sql/import: fix progress summary loss during concurrent updates r=ZhouXing19 a=ZhouXing19
fixes #152543
fixes #152519
Previously, `accumulatedBulkSummary` was reset on each `updateJobProgress` call, assuming the job progress update would always succeed. However, if the update failed due to concurrent job state changes and retried, the reset buffer would cause progress data loss, resulting in incorrect row counts in progress reporting.
Fix this by removing the reset logic and directly assigning `accumulatedBulkSummary` to the progress summary instead of adding to it.
Release note (bug fix): Fixed import progress reporting to show correct row counts when concurrent job state changes occur.
152985: roachtest: use LeaderLeases for schemachange/bulkingest tests r=spilchen a=spilchen
Changed from MetamorphicLeases to LeaderLeases in
makeSchemaChangeBulkIngestTest to address potential test stability issues identified in issue #152857.
Closes #152857
Release note: none
Epic: None
Co-authored-by: ZhouXing19 <zhouxing@uchicago.edu>
Co-authored-by: Matt Spilchen <matt.spilchen@cockroachlabs.com>
File tree
4 files changed
+26
-7
lines changed- pkg
- cmd/roachtest/tests
- sql/importer
4 files changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
125 | | - | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
176 | | - | |
177 | | - | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
3836 | 3838 | | |
3837 | 3839 | | |
3838 | 3840 | | |
| 3841 | + | |
| 3842 | + | |
3839 | 3843 | | |
3840 | 3844 | | |
3841 | 3845 | | |
| |||
3846 | 3850 | | |
3847 | 3851 | | |
3848 | 3852 | | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
3849 | 3856 | | |
3850 | 3857 | | |
3851 | 3858 | | |
3852 | 3859 | | |
3853 | | - | |
3854 | 3860 | | |
3855 | 3861 | | |
3856 | 3862 | | |
| |||
3971 | 3977 | | |
3972 | 3978 | | |
3973 | 3979 | | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
3974 | 3990 | | |
3975 | 3991 | | |
3976 | 3992 | | |
| |||
0 commit comments