Skip to content

Commit

Permalink
Reword comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jjezra committed Jan 13, 2025
1 parent 1d77985 commit df17ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void luceneIndexScrubMissingSimple() {
this.recordStore = pair.getLeft();
this.planner = pair.getRight();
injectedFailures.addFailure(LUCENE_GET_PRIMARY_KEY_SEGMENT_INDEX_FORCE_NULL,
new LuceneConcurrency.AsyncToSyncTimeoutException("", new TimeoutException("Blah")), 3);
new LuceneConcurrency.AsyncToSyncTimeoutException("", new TimeoutException("Dummy")), 3);

recordStore.saveRecord(createSimpleDocument(1623L, ENGINEER_JOKE, 2));
recordStore.saveRecord(createSimpleDocument(7771547L, WAYLON, 1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void checkFailure(@Nonnull final Methods method) throws Exception {

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

0 comments on commit df17ad5

Please sign in to comment.