private long getMaxOplogSizeInBytes() { return parent.getMaxOplogSizeInBytes(); }
private long getMaxOplogSizeInBytes() { return parent.getMaxOplogSizeInBytes(); }
private long calcLimit(DiskStoreImpl dImpl) { long limit = dImpl.getMaxOplogSizeInBytes(); limit = Math.max(Math.round(1.15 * limit), FIFTY_MB); return limit; } }
/** * This constructor will get invoked only in case of persistent region when it * is recovering an oplog. * * @param oplogId * @param parent */ Oplog(long oplogId, PersistentOplogSet parent) { // @todo have the crf and drf use different directories. if (oplogId > DiskId.MAX_OPLOG_ID) { throw new IllegalStateException("Too many oplogs. The oplog id can not exceed " + DiskId.MAX_OPLOG_ID); } this.isRecovering = true; this.oplogId = oplogId; this.parent = parent.getParent(); this.oplogSet = parent; this.opState = new OpState(); long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); this.maxOplogSize = maxOplogSizeParam; setMaxCrfDrfSize(); this.stats = getParent().getStats(); this.compactOplogs = getParent().getAutoCompact(); this.closed = true; this.crf.RAFClosed = true; this.deleted.set(true); this.haveRecoveredCrf = false; this.haveRecoveredDrf = false; }
if (getMaxOplogSizeInBytes() != props.getMaxOplogSizeInBytes()) { if (logger.isDebugEnabled()) { logger.debug("MaxOplogSizeInBytes {} != {}", getMaxOplogSizeInBytes(), props.getMaxOplogSizeInBytes()); && getAutoCompact() == props.getAutoCompact() && getCompactionThreshold() == props.getCompactionThreshold() && getMaxOplogSizeInBytes() == props.getMaxOplogSizeInBytes() && getName().equals(props.getName()) && getQueueSize() == props.getQueueSize()
/** * This constructor will get invoked only in case of persistent region * when it is recovering an oplog. * @param oplogId * @param parent */ Oplog(long oplogId, PersistentOplogSet parent) { // @todo have the crf and drf use different directories. if (oplogId > DiskId.MAX_OPLOG_ID) { throw new IllegalStateException("Too many oplogs. The oplog id can not exceed " + DiskId.MAX_OPLOG_ID); } this.isRecovering = true; this.oplogId = oplogId; this.parent = parent.getParent(); this.oplogSet = parent; this.logger = getParent().getCache().getLoggerI18n(); this.opState = new OpState(); long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); this.maxOplogSize = maxOplogSizeParam; setMaxCrfDrfSize(); this.stats = getParent().getStats(); this.compactOplogs = getParent().getAutoCompact(); this.closed = true; this.crf.RAFClosed = true; this.deleted.set(true); this.haveRecoveredCrf = false; this.haveRecoveredDrf = false; this.newOplog = false; this.idxkrf = new OplogIndex(this); }
this.dirHolder = dirHolder; this.opState = new OpState(); long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); long availableSpace = this.dirHolder.getAvailableSpace(); if (prevOplog.compactOplogs) {
this.dirHolder = dirHolder; this.opState = new OpState(); long maxOplogSizeParam = this.parent.getMaxOplogSizeInBytes(); if (maxOplogSizeParam < minSize) { maxOplogSizeParam = minSize;
long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); long availableSpace = this.dirHolder.getAvailableSpace(); if (availableSpace < maxOplogSizeParam) {
+ getCompactionThreshold() + "!=" + props.getCompactionThreshold()); if (getMaxOplogSizeInBytes() != props.getMaxOplogSizeInBytes()) { this.logger.info(LocalizedStrings.DEBUG, "DEBUG MaxOplogSizeInBytes " + getMaxOplogSizeInBytes() + "!=" + props.getMaxOplogSizeInBytes()); && getAutoCompact() == props.getAutoCompact() && getCompactionThreshold() == props.getCompactionThreshold() && getMaxOplogSizeInBytes() == props.getMaxOplogSizeInBytes() && getName().equals(props.getName()) && getQueueSize() == props.getQueueSize()
this.opState = new OpState(); this.logger = this.parent.getCache().getLoggerI18n(); long maxOplogSizeParam = this.parent.getMaxOplogSizeInBytes(); if (maxOplogSizeParam < minSize) { maxOplogSizeParam = minSize;
this.logger = getParent().getCache().getLoggerI18n(); this.opState = new OpState(); long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); long availableSpace = this.dirHolder.getAvailableSpace(); if (availableSpace < maxOplogSizeParam) {
this.opState = new OpState(); this.logger = prevOplog.logger; long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); long availableSpace = this.dirHolder.getAvailableSpace(); if (prevOplog.compactOplogs) {
allowing(parent).getCache(); will(returnValue(cache)); allowing(parent).getMaxOplogSizeInBytes(); will(returnValue(10000L)); allowing(parent).getName();