Skip to content

Commit df17ad5

Browse files
committed
Reword comment
1 parent 1d77985 commit df17ad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fdb-record-layer-lucene/src/test/java/com/apple/foundationdb/record/lucene/LuceneIndexScrubbingTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void luceneIndexScrubMissingSimple() {
107107
this.recordStore = pair.getLeft();
108108
this.planner = pair.getRight();
109109
injectedFailures.addFailure(LUCENE_GET_PRIMARY_KEY_SEGMENT_INDEX_FORCE_NULL,
110-
new LuceneConcurrency.AsyncToSyncTimeoutException("", new TimeoutException("Blah")), 3);
110+
new LuceneConcurrency.AsyncToSyncTimeoutException("", new TimeoutException("Dummy")), 3);
111111

112112
recordStore.saveRecord(createSimpleDocument(1623L, ENGINEER_JOKE, 2));
113113
recordStore.saveRecord(createSimpleDocument(7771547L, WAYLON, 1));

fdb-record-layer-lucene/src/test/java/com/apple/foundationdb/record/lucene/directory/InjectedFailureRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void checkFailure(@Nonnull final Methods method) throws Exception {
100100

101101
public boolean shouldFailWithoutException(@Nonnull Methods method) {
102102
// Return true "count" times, then return false
103-
// (Note that "checkFailure" will succeed "count" times, the repeatedly throw an exception)
103+
// (Note that it's a reverse logic of "checkFailure" - which will succeed "count" times, then repeatedly throw an exception)
104104
FailureDescription failureDescription = failureDescriptions.get(method);
105105
if (failureDescription != null) {
106106
AtomicLong count = invocationCounts.computeIfAbsent(method, m -> new AtomicLong(0));

0 commit comments

Comments
 (0)