Commit aa81bbc
authored
Avoid a data race when dealing with the lowwatermark (#1530)
* Remove error return value since we don't use it.
* Lock the mutex whenever we plan to update the low watermark to avoid a race condition.
* Check for data races in our unit tests.
* Still return an error from ProcessEventsUntilDrained but actually check it in our code.
* Make coordinator_test.go to check the err from ProcessEventsUntilDrained again
* Remove unreachable return in ProcessEventsUntilDrained1 parent 5c349ab commit aa81bbc
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
380 | 381 | | |
381 | 382 | | |
382 | 383 | | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
1322 | | - | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1323 | 1325 | | |
1324 | 1326 | | |
1325 | 1327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
0 commit comments