Commit 3901231
GH-4027: Fix updateClusterId logic to expected
Fixed: #4027
Change condition from `!= null` to `== null` to only fetch `clusterId` when it's not set yet.
This avoids unnecessary broker calls and improves performance while maintaining consistency with `clusterId()` method
This is a fix for an important omission after #2859
Signed-off-by: Choi Wang Gyu <[email protected]>
(cherry picked from commit 052bed7)== null
1 parent 968b981 commit 3901231
File tree
1 file changed
+2
-1
lines changed- spring-kafka/src/main/java/org/springframework/kafka/core
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
0 commit comments