@Test public void lastModificationTimeCompleteFileTest() throws Exception { long fileId = mFsMaster.createFile(new AlluxioURI("/testFile"), CreateFileOptions.defaults()); long opTimeMs = TEST_CURRENT_TIME; try (LockedInodePath inodePath = mInodeTree.lockFullInodePath(new AlluxioURI("/testFile"), InodeTree.LockMode.WRITE)) { mFsMaster.completeFileInternal(new ArrayList<Long>(), inodePath, 0, opTimeMs); } FileInfo fileInfo = mFsMaster.getFileInfo(fileId); Assert.assertEquals(opTimeMs, fileInfo.getLastModificationTimeMs()); }