/** * Indicates that the same translog exists, but new operations have been appended to it. Throws * {@link ElasticSearchIllegalStateException} if {@link #newTranslogCreated()} is <tt>true</tt>, * so always check that first. */ public boolean sameTranslogNewOperations() { if (newTranslogCreated()) { throw new ElasticSearchIllegalStateException( "Should not be called when there is a new translog"); } return translogSnapshot.length() > lastTranslogLength; }