Skip to content

Commit

Permalink
fix benchmark (Azure#30781)
Browse files Browse the repository at this point in the history
* fix benchmark

Co-authored-by: annie-mac <[email protected]>
  • Loading branch information
xinlian12 and annie-mac authored Sep 15, 2022
1 parent 5de376c commit d5749bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public static boolean shouldContinue(long startTimeMillis, long iterationCount,
return iterationCount < maxNumberOfOperations;
}

if (startTimeMillis + maxDurationTime.toMillis() > System.currentTimeMillis()) {
return false;
}
return true;
return startTimeMillis + maxDurationTime.toMillis() > System.currentTimeMillis();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private Mono<TValue> createBackgroundRefreshTask(Function<TValue, Mono<TValue>>
})
.doOnError(throwable -> {
this.refreshInProgress.set(null);
logger.warn("Background refresh task failed", throwable);
logger.debug("Background refresh task failed", throwable);
})
.cache();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public Mono<Utils.ValueHolder<AddressInformation[]>> tryGetAddresses(RxDocumentS
if (Arrays
.stream(addressesValueHolder.v)
.anyMatch(addressInformation -> addressInformation.getPhysicalUri().shouldRefreshHealthStatus())) {
logger.info("refresh cache due to address uri in unhealthy status");
logger.debug("refresh cache due to address uri in unhealthy status for pkRangeId {}", partitionKeyRangeIdentity.getPartitionKeyRangeId());
this.serverPartitionAddressCache.refresh(
partitionKeyRangeIdentity,
cachedAddresses -> this.getAddressesForRangeId(request, partitionKeyRangeIdentity, true, cachedAddresses));
Expand Down

0 comments on commit d5749bf

Please sign in to comment.