Skip to content

Commit

Permalink
IGNITE-21823 Add proper logging of default pageSize (#11355)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgarrish committed May 23, 2024
1 parent a2cd44c commit 98f200a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,8 @@ else if (regCfg.getPageEvictionMode() != DataPageEvictionMode.DISABLED) {

if (anyIdxPartFile != null) {
memCfg.setPageSize(resolvePageSizeFromPartitionFile(anyIdxPartFile));
log.info("The DataStorageConfiguration.pageSize property has been restored from persistence to: "
+ memCfg.getPageSize() + " bytes");

return;
}
Expand All @@ -1328,6 +1330,7 @@ else if (regCfg.getPageEvictionMode() != DataPageEvictionMode.DISABLED) {
}

memCfg.setPageSize(DataStorageConfiguration.DFLT_PAGE_SIZE);
log.info("The DataStorageConfiguration.pageSize property has been set to: " + memCfg.getPageSize() + " bytes");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,10 @@ private void checkDataRegionConfiguration(
* @param memCfg Memory config.
*/
protected void checkPageSize(DataStorageConfiguration memCfg) {
if (memCfg.getPageSize() == 0)
if (memCfg.getPageSize() == 0) {
memCfg.setPageSize(DFLT_PAGE_SIZE);
log.info("The DataStorageConfiguration.pageSize property has been set to: " + memCfg.getPageSize() + " bytes");
}
}

/**
Expand Down

0 comments on commit 98f200a

Please sign in to comment.