Skip to content

Commit

Permalink
Add build.yml process error.printStackTrace();
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Mar 12, 2024
1 parent 277e665 commit 1fedf4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ protected void addConnectorInfo(final V connectorInfo) {
public boolean apply(Pair<ConnectorKeyRange, PromiseImpl<ConnectorInfo, RuntimeException>> value) {
return value.getKey().isInRange(connectorInfo.getConnectorKey());
}

@Override
public boolean test(Pair<ConnectorKeyRange, PromiseImpl<ConnectorInfo, RuntimeException>> input) {
return apply(input);
}
})) {
rangeEntry.getValue().handleResult(connectorInfo);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void handleResult(ConnectorInfo result) {
}).thenOnException(new ExceptionHandler<RuntimeException>() {
public void handleException(RuntimeException error) {
error.printStackTrace();
Assert.fail("KeyRange search should succeed", error);
Assert.fail("1 KeyRange search should succeed "+ error.toString(), error);
}
});

Expand All @@ -194,7 +194,7 @@ public void handleResult(ConnectorInfo result) {
}).thenOnException(new ExceptionHandler<RuntimeException>() {
public void handleException(RuntimeException error) {
error.printStackTrace();
Assert.fail("KeyRange search should succeed", error);
Assert.fail("2 KeyRange search should succeed "+ error.toString(), error);
}
});

Expand All @@ -217,7 +217,7 @@ public void handleResult(ConnectorInfo result) {
}).thenOnException(new ExceptionHandler<RuntimeException>() {
public void handleException(RuntimeException error) {
error.printStackTrace();
Assert.fail("KeyRange search should succeed", error);
Assert.fail("3 KeyRange search should succeed "+ error.toString(), error);
}
});
keyRangePromise.getOrThrowUninterruptibly(10, TimeUnit.SECONDS);
Expand Down

0 comments on commit 1fedf4a

Please sign in to comment.