Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1829,14 +1829,14 @@ public int activePagesCount() {

/** {@inheritDoc} */
@Override public int checkpointBufferPagesCount() {
return checkpointPool.size();
return checkpointPool == null ? 0 : checkpointPool.size();
}

/**
* Number of used pages in checkpoint buffer.
*/
public int checkpointBufferPagesSize() {
return checkpointPool.pages();
return checkpointPool == null ? 0 : checkpointPool.pages();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ public class IgnitePdsDataRegionMetricsTest extends GridCommonAbstractTest {
.setMaxSize(MAX_REGION_SIZE)
.setPersistenceEnabled(true)
.setMetricsEnabled(true))
.setDataRegionConfigurations(
new DataRegionConfiguration()
.setName("EmptyRegion")
.setInitialSize(INIT_REGION_SIZE)
.setMaxSize(MAX_REGION_SIZE)
.setPersistenceEnabled(true)
.setMetricsEnabled(true))
.setCheckpointFrequency(1000);

cfg.setDataStorageConfiguration(memCfg);
Expand Down