This was missed by the commit which introduced this setting. It was not read from the config
and set on the DataStoreContext. This meant that the default (12 percent) was used regardless
of the actual setting.
Also changed the name of the stat to InMemoryJournalDataSize instead of just DataSize to be
more clear
Change-Id: Iaffddb3e614db7a270d847ba219801e36c8a64e0
Signed-off-by: Moiz Raja <moraja@cisco.com>
shardMBean.setCommitIndex(getCommitIndex());
shardMBean.setLastApplied(getLastApplied());
- shardMBean.setDataSize(getRaftActorContext().getReplicatedLog().dataSize());
+ shardMBean.setInMemoryJournalDataSize(getRaftActorContext().getReplicatedLog().dataSize());
}
@Override
this.lastCommittedTransactionTime = lastCommittedTransactionTime;
}
- public void setDataSize(long dataSize){
+ public void setInMemoryJournalDataSize(long dataSize){
this.dataSize = dataSize;
}
@Override
- public long getDataSize(){
+ public long getInMemoryJournalDataSize(){
return dataSize;
}
void resetTransactionCounters();
- long getDataSize();
+ long getInMemoryJournalDataSize();
}
.shardJournalRecoveryLogBatchSize(props.getShardJournalRecoveryLogBatchSize().
getValue().intValue())
.shardSnapshotBatchCount(props.getShardSnapshotBatchCount().getValue().intValue())
+ .shardSnapshotDataThresholdPercentage(props.getShardSnapshotDataThresholdPercentage().getValue().intValue())
.shardHeartbeatIntervalInMillis(props.getShardHearbeatIntervalInMillis().getValue())
.shardInitializationTimeout(props.getShardInitializationTimeoutInSeconds().getValue(),
TimeUnit.SECONDS)
.shardJournalRecoveryLogBatchSize(props.getShardJournalRecoveryLogBatchSize().
getValue().intValue())
.shardSnapshotBatchCount(props.getShardSnapshotBatchCount().getValue().intValue())
+ .shardSnapshotDataThresholdPercentage(props.getShardSnapshotDataThresholdPercentage().getValue().intValue())
.shardHeartbeatIntervalInMillis(props.getShardHearbeatIntervalInMillis().getValue())
.shardInitializationTimeout(props.getShardInitializationTimeoutInSeconds().getValue(),
TimeUnit.SECONDS)