isInfoEnabled() check before logging on info level - Fixes
@@ -646,6 +646,7 @@ public class GridCacheDatabaseSharedManager extends IgniteCacheDatabaseSharedMan
long newSize = (long)(region.getMaxSize() * shrinkPercentage);
long newInitSize = Math.min(region.getInitialSize(), newSize);
+ if (log.isInfoEnabled()) {
log.info("Region size was reassigned by defragmentation reason: " +
"region = '" + region.getName() + "', " +
"oldInitialSize = '" + region.getInitialSize() + "', " +
@@ -653,6 +654,7 @@ public class GridCacheDatabaseSharedManager extends IgniteCacheDatabaseSharedMan
"oldMaxSize = '" + region.getMaxSize() + "', " +
"newMaxSize = '" + newSize
);
+ }
region.setMaxSize(newSize);
region.setInitialSize(newInitSize);
@@ -1101,6 +1103,7 @@ public class GridCacheDatabaseSharedManager extends IgniteCacheDatabaseSharedMan
long time = System.currentTimeMillis();
try {
+ if (log.isInfoEnabled())
log.info("Starting binary memory restore for: " + cctx.cache().cacheGroupDescriptors().keySet());
for (DatabaseLifecycleListener lsnr : getDatabaseListeners(cctx.kernalContext()))
@@ -3673,8 +3676,10 @@ public class GridCacheDatabaseSharedManager extends IgniteCacheDatabaseSharedMan
// We roll memory up until we find a checkpoint start record registered in the status.
if (F.eq(cpRec.checkpointId(), status.cpStartId)) {
+ if (log.isInfoEnabled()) {
log.info("Found last checkpoint marker [cpId=" + cpRec.checkpointId() +
", pos=" + rec.position() + ']');
+ }
needApplyBinaryUpdates = false;
}
@@ -3699,8 +3704,10 @@ public class GridCacheDatabaseSharedManager extends IgniteCacheDatabaseSharedMan
* @return Flag indicates need throws CRC exception or not.
*/
@Override public boolean throwsCRCError() {
+ if (log.isInfoEnabled()) {
log.info("Throws CRC error check [needApplyBinaryUpdates=" + needApplyBinaryUpdates +
", lastArchivedSegment=" + lastArchivedSegment + ", lastRead=" + lastReadRecordPointer() + ']');
+ }
if (needApplyBinaryUpdates)
return true;
