@Test public void CompltedEditLogDeletionTest() throws Exception { Journal journal = mLocalTachyonCluster.getMasterInfo().getJournal(); journal.setMaxLogSize(Constants.KB); for (int i = 0; i < 124; i ++) { mTfs.createFile("/a" + i, (i + 10) / 10 * 64); } mLocalTachyonCluster.stopTFS(); String editLogPath = mLocalTachyonCluster.getEditLogPath(); String completedPath = editLogPath.substring(0, editLogPath.lastIndexOf(Constants.PATH_SEPARATOR)) + "/completed"; Assert.assertTrue(UnderFileSystem.get(completedPath).list(completedPath).length > 1); MultiEditLogTestUtil(); Assert.assertTrue(UnderFileSystem.get(completedPath).list(completedPath).length == 0); MultiEditLogTestUtil(); }
public void setMaxLogSize(int size) { mEditLog.setMaxLogSize(size); }
Journal { public void setMaxLogSize(int size) { mEditLog.setMaxLogSize(size); } }
Journal { public void setMaxLogSize(int size) { mEditLog.setMaxLogSize(size); } Journal(String folder, String imageFileName, String editLogFileName); }
Journal { public void setMaxLogSize(int size) { mEditLog.setMaxLogSize(size); } Journal(String folder, String imageFileName, String editLogFileName); void close(); void createEditLog(long startingTransactionId); void createImage(MasterInfo info); void createImage(MasterInfo info, String imagePath); EditLog getEditLog(); long getImageModTimeMs(); long loadEditLog(MasterInfo info); void loadImage(MasterInfo info); void loadSingleLogFile(MasterInfo info, String path); void setMaxLogSize(int size); }
Journal { public void setMaxLogSize(int size) { mEditLog.setMaxLogSize(size); } Journal(String folder, String imageFileName, String editLogFileName); void close(); void createEditLog(long startingTransactionId); void createImage(MasterInfo info); void createImage(MasterInfo info, String imagePath); EditLog getEditLog(); long getImageModTimeMs(); long loadEditLog(MasterInfo info); void loadImage(MasterInfo info); void loadSingleLogFile(MasterInfo info, String path); void setMaxLogSize(int size);  }