/** * Delegates the operation to the backing store. */ @Override synchronized public long commit() { final long begin = System.currentTimeMillis(); super.commit(); final IIndexManager indexManager = getIndexManager(); if (indexManager.isGroupCommit()) { /* * Note: GROUP_COMMIT (#566) requires that the WriteExecutorService * controls when commit points are melded. If group commit is enabled * and the index manager is directs the Journal to commit() then any * partially executed tasks that have checkpointed indices will be * immediately flushed to the backing store, breaking the ACID * semantics of the commit. * * Note: The checkpoint of the indices for an unisolated AbstractTask * occurs when the task is done with its work but is still holding any * resource locks. */ return 0L; } final long commitTime = getIndexManager().commit(); final long elapsed = System.currentTimeMillis() - begin; if (log.isInfoEnabled()) log.info("commit: commit latency=" + elapsed + "ms"); return commitTime; }
/** * Delegates the operation to the backing store. */ @Override synchronized public long commit() { final long begin = System.currentTimeMillis(); super.commit(); final IIndexManager indexManager = getIndexManager(); if (indexManager.isGroupCommit()) { /* * Note: GROUP_COMMIT (#566) requires that the WriteExecutorService * controls when commit points are melded. If group commit is enabled * and the index manager is directs the Journal to commit() then any * partially executed tasks that have checkpointed indices will be * immediately flushed to the backing store, breaking the ACID * semantics of the commit. * * Note: The checkpoint of the indices for an unisolated AbstractTask * occurs when the task is done with its work but is still holding any * resource locks. */ return 0L; } final long commitTime = getIndexManager().commit(); final long elapsed = System.currentTimeMillis() - begin; if (log.isInfoEnabled()) log.info("commit: commit latency=" + elapsed + "ms"); return commitTime; }
store.commit();
store.commit();
store.commit();
journal.commit();
journal.commit();
store.commit();
store.commit();
store.commit();
((IJournal) indexManager).commit();
((IJournal) indexManager).commit();