Commit f42be39
authored
Added synchronized block for Scan Query Result List.
When executing scan in parallel with scanPolicy.concurrentNodes = true, the results were inconsistent due to add method of ArrayList not being thread safe. Added synchronized keyword to prevent race condition1 parent d43ec32 commit f42be39
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
0 commit comments