public void dump() { if (logger.isTraceEnabled(LogMarker.PERSIST_RECOVERY_VERBOSE)) { System.out.println("expectedCrfs=" + Arrays.toString(this.crfIds.toArray())); System.out.println("expectedDrfs=" + Arrays.toString(this.drfIds.toArray())); System.out.println("dataSerializerIds=" + Arrays.toString(this.dsIds.toArray())); System.out.println("instantiatorIds= " + Arrays.toString(this.instIds.toArray())); } }
public void verifyOplogs(LongOpenHashSet foundCrfs, LongOpenHashSet foundDrfs, LongOpenHashSet expectedCrfIds, LongOpenHashSet expectedDrfIds) { LongOpenHashSet missingCrfs = calcMissing(foundCrfs, expectedCrfIds); LongOpenHashSet missingDrfs = calcMissing(foundDrfs, expectedDrfIds); // Note that finding extra ones is ok; it is possible we died just // after creating one but before we could record it in the if file // Or died just after deleting it but before we could record it in the if file. boolean failed = false; String msg = null; if (!missingCrfs.isEmpty()) { failed = true; msg = "*.crf files with these ids: " + Arrays.toString(missingCrfs.toArray()); } if (!missingDrfs.isEmpty()) { failed = true; if (msg == null) { msg = ""; } else { msg += ", "; } msg += "*.drf files with these ids: " + Arrays.toString(missingDrfs.toArray()); } if (failed) { msg = "The following required files could not be found: " + msg + "."; throw new IllegalStateException(msg); } }
public void dump() { if (logger.isTraceEnabled(LogMarker.PERSIST_RECOVERY)) { System.out.println("expectedCrfs=" + Arrays.toString(this.crfIds.toArray())); System.out.println("expectedDrfs=" + Arrays.toString(this.drfIds.toArray())); System.out.println("dataSerializerIds=" + Arrays.toString(this.dsIds.toArray())); System.out.println("instantiatorIds= " + Arrays.toString(this.instIds.toArray())); } }
public void verifyOplogs(LongOpenHashSet foundCrfs, LongOpenHashSet foundDrfs, LongOpenHashSet expectedCrfIds, LongOpenHashSet expectedDrfIds) { LongOpenHashSet missingCrfs = calcMissing(foundCrfs, expectedCrfIds); LongOpenHashSet missingDrfs = calcMissing(foundDrfs, expectedDrfIds); // Note that finding extra ones is ok; it is possible we died just // after creating one but before we could record it in the if file // Or died just after deleting it but before we could record it in the if file. boolean failed = false; String msg = null; if (!missingCrfs.isEmpty()) { failed = true; msg = "*.crf files with these ids: " + Arrays.toString(missingCrfs.toArray()); } if (!missingDrfs.isEmpty()) { failed = true; if (msg == null) { msg = ""; } else { msg += ", "; } msg += "*.drf files with these ids: " + Arrays.toString(missingDrfs.toArray()); } if (failed) { msg = "The following required files could not be found: " + msg + "."; throw new IllegalStateException(msg); } }