Skip to content

Commit

Permalink
Reenable azure repository tests and remove some randomization in http…
Browse files Browse the repository at this point in the history
… servers (elastic#48283)

Relates elastic#47948
Relates elastic#47380
  • Loading branch information
tlrx authored Oct 22, 2019
1 parent 204ff83 commit a6b8d0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,4 @@ protected String requestUniqueId(final HttpExchange exchange) {
+ (range != null ? " " + range : "");
}
}

@Override
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/47948")
public void testIndicesDeletedFromRepository() throws Exception {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void handle(final HttpExchange exchange) throws IOException {

final boolean canFailRequest = canFailRequest(exchange);
final int count = requests.computeIfAbsent(requestId, req -> new AtomicInteger(0)).incrementAndGet();
if (count >= maxErrorsPerRequest || canFailRequest == false || randomBoolean()) {
if (count >= maxErrorsPerRequest || canFailRequest == false) {
requests.remove(requestId);
delegate.handle(exchange);
} else {
Expand Down

0 comments on commit a6b8d0d

Please sign in to comment.