Commit 358dc27
authored
MINOR: Ensure proper visibility of attribute accesses across threads (#21014)
I found those two cases while working in this area. In both cases, they
are read by multiple threads so they must either be volatile or
acquiring the appropriate lock. Using volatile is fine here.
Reviewers: Lianet Magrans <lmagrans@confluent.io>1 parent 5cfb17d commit 358dc27
File tree
2 files changed
+2
-2
lines changed- coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime
- group-coordinator/src/main/java/org/apache/kafka/coordinator/group
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
0 commit comments