Repository navigation
Fix incorrect double-checked-locking around TestStreamScanSql#tEnv - #10605
Conversation
| private volatile TableEnvironment tEnv; | ||
|
|
||
| @Override | ||
| protected TableEnvironment getTableEnv() { |
There was a problem hiding this comment.
Not strictly required for correctness, more of a minor performance improvement but you can add a temporary variable in getTableEnv() referencing tEnv since in most cases tEnv will already be initialized. See https://stackoverflow.com/a/3580658
There was a problem hiding this comment.
@amogh-jahagirdar thanks for reviewing and nice ref link. I've updated it.
d1c68da to
c46d254
Compare
snazy
left a comment
There was a problem hiding this comment.
Doesn't this also need to be changed for older Flink versions?
Signed-off-by: Tai Le Manh <[email protected]>
c46d254 to
cdd94c7
Compare
@snazy Oops, thanks for your review, I missed it. It's updated now. |
@snazy Just FYI for future PRs, typically we backport fixes to older engine versions in separate PRs but since this is a small change we can probably just do it in the same PR. |
…pache#10605) Signed-off-by: Tai Le Manh <[email protected]>
…pache#10605) Signed-off-by: Tai Le Manh <[email protected]>
Resolves #10592.