zstan commented on code in PR #13736:
URL: https://github.com/apache/ignite/pull/13736#discussion_r4534877822
##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/schema/CacheTableImpl.java:
##########
@@ -81,7 +85,7 @@ public CacheTableImpl(GridKernalContext ctx,
CacheTableDescriptor desc) {
if (statistics != null)
return new IgniteStatisticsImpl(statistics);
- return new IgniteStatisticsImpl(desc);
+ return fallbackStats;
Review Comment:
probably we need to use lazy initialization here ?
if (fallbackStats == null) {
sync {
if (fallbackStats == null)
fallbackStats = new IgniteStatisticsImpl(desc);
}
}
smth like this or use AtomicRef ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]