public void run() { if (!krf.delete()) { if (krf.exists()) { logger.warn(LocalizedMessage.create(LocalizedStrings.Oplog_DELETE_FAIL_0_1_2, new Object[] { Oplog.this.toString(), "krf", getParent().getName() })); } } else { logger.info(LocalizedMessage.create(LocalizedStrings.Oplog_DELETE_0_1_2, new Object[] { Oplog.this.toString(), "krf", getParent().getName() })); } } });
public void run() { if (!olf.f.delete() && olf.f.exists()) { logger.warn(LocalizedMessage.create(LocalizedStrings.Oplog_DELETE_FAIL_0_1_2, new Object[] { Oplog.this.toString(), getFileType(olf), getParent().getName() })); } else { logger.info(LocalizedMessage.create(LocalizedStrings.Oplog_DELETE_0_1_2, new Object[] { Oplog.this.toString(), getFileType(olf), getParent().getName() })); } } });
public void run() { if (!krf.delete()) { if (krf.exists()) { logger.warning(LocalizedStrings.Oplog_DELETE_FAIL_0_1_2, new Object[] { Oplog.this.toString(), "krf", getParent().getName()}); } } else { if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_DELETE_0_1_2, new Object[] { Oplog.this.toString(), "krf", getParent().getName() }); } } } });
public void run() { if (!olf.f.delete() && olf.f.exists()) { logger.warning(LocalizedStrings.Oplog_DELETE_FAIL_0_1_2, new Object[] {Oplog.this.toString(), getFileType(olf), getParent().getName()}); } else if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_DELETE_0_1_2, new Object[] {Oplog.this.toString(), getFileType(olf), getParent().getName()}); // logger.info(LocalizedStrings.DEBUG, "DEBUG deleteFile " + olf.f, // new RuntimeException("STACK")); } } });
if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_CREATE_0_1_2, new Object[]{ this.oplog.toString(), IDX_FILE_EXT, this.dsi.getName()});
final synchronized void deleteIRF(String reason) { DiskInitFile initFile = this.dsi.getDiskInitFile(); if (initFile.hasIrf(this.oplog.getOplogId())) { // add deleted IRF record initFile.irfDelete(this.oplog.getOplogId()); } if (this.irf != null && this.irf.exists()) { if (reason != null) { final LogWriterI18n logger = this.oplog.logger; if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_DELETE_0_1_2, new Object[] { this.oplog.toString(), this.irf.getAbsolutePath() + " (" + reason + ')', this.dsi.getName() }); } } if (!this.irf.delete()) { final LogWriterI18n logger = this.oplog.logger; logger.warning(LocalizedStrings.Oplog_DELETE_FAIL_0_1_2, new Object[] { this.oplog.toString(), this.irf.getAbsolutePath(), this.dsi.getName() }); } } }
logger.info(LocalizedMessage.create(LocalizedStrings.Oplog_CREATE_0_1_2, new Object[] { toString(), "krf", getParent().getName() }));
/** * Creates the drf oplog file * * @throws IOException */ private void createDrf(OplogFile prevOlf) throws IOException { File f = new File(this.diskFile.getPath() + DRF_FILE_EXT); this.drf.f = f; if (logger.isDebugEnabled()) { logger.debug("Creating operation log file {}", f); } preblow(this.drf, getMaxDrfSize()); this.drf.raf = new UninterruptibleRandomAccessFile(f, SYNC_WRITES ? "rwd" : "rw"); this.drf.RAFClosed = false; this.oplogSet.drfCreate(this.oplogId); this.drf.writeBuf = allocateWriteBuf(prevOlf); logger.info(LocalizedMessage.create(LocalizedStrings.Oplog_CREATE_0_1_2, new Object[] { toString(), getFileType(this.drf), getParent().getName() })); this.drf.channel = this.drf.raf.getChannel(); writeDiskStoreRecord(this.drf, OPLOG_TYPE.DRF); writeGemfireVersionRecord(this.drf); writeRVVRecord(this.drf, true); }
toString(), "krf", getParent().getName() });
private void handleEmpty(boolean calledByCompactor) { lockCompactor(); try { if (!calledByCompactor) { logger.info(LocalizedMessage.create(LocalizedStrings.Oplog_CLOSING_EMPTY_OPLOG_0_1, new Object[] { getParent().getName(), toString() })); } cancelKrf(); close(); deleteFiles(getHasDeletes()); } finally { unlockCompactor(); } }
/** * Creates the crf oplog file * * @throws IOException */ private void createCrf(OplogFile prevOlf) throws IOException { File f = new File(this.diskFile.getPath() + CRF_FILE_EXT); if (logger.isDebugEnabled()) { logger.debug("Creating operation log file {}", f); } this.crf.f = f; preblow(this.crf, getMaxCrfSize()); this.crf.raf = new UninterruptibleRandomAccessFile(f, SYNC_WRITES ? "rwd" : "rw"); this.crf.RAFClosed = false; oplogSet.crfCreate(this.oplogId); this.crf.writeBuf = allocateWriteBuf(prevOlf); logger.info(LocalizedMessage.create(LocalizedStrings.Oplog_CREATE_0_1_2, new Object[] { toString(), getFileType(this.crf), getParent().getName() })); this.crf.channel = this.crf.raf.getChannel(); this.stats.incOpenOplogs(); writeDiskStoreRecord(this.crf, OPLOG_TYPE.CRF); writeGemfireVersionRecord(this.crf); writeRVVRecord(this.crf, false); // Fix for bug 41654 - don't count the header // size against the size of the oplog. This ensures that // even if we have a large RVV, we can still write up to // max-oplog-size bytes to this oplog. this.maxCrfSize += this.crf.currSize; }
if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_CREATE_0_1_2, new Object[] {toString(), getFileType(this.drf), getParent().getName()});
new Object[] {toString(), getFileType(this.crf), getParent().getName()});
this.haveRecoveredDrf = true; logger.info(LocalizedMessage.create(LocalizedStrings.DiskRegion_RECOVERING_OPLOG_0_1_2, new Object[] { toString(), drfFile.getAbsolutePath(), getParent().getName() })); this.recoverDelEntryId = DiskStoreImpl.INVALID_ID;
private void handleEmpty(boolean calledByCompactor) { lockCompactor(); try { if (!calledByCompactor) { if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_CLOSING_EMPTY_OPLOG_0_1, new Object[] {getParent().getName(), toString()}); } } cancelKrf(); close(); deleteFiles(getHasDeletes()); } finally { unlockCompactor(); } }
logger.info(LocalizedMessage.create(LocalizedStrings.DiskRegion_RECOVERING_OPLOG_0_1_2, new Object[] { toString(), crfFile.getAbsolutePath(), getParent().getName() })); byteCount = readCrf(deletedIds, recoverValues, latestOplog);
if (logger.infoEnabled()) { logger.info(LocalizedStrings.Oplog_CREATE_0_1_2, new Object[]{ toString(), this.idxkrf.getIndexFile().getAbsolutePath(), getParent().getName()});
new Object[] { toString(), crfFile.getAbsolutePath(), getParent().getName() });