Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Dec 26, 2023
1 parent 82c987a commit 76365d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void smokin() throws Exception {
long then = System.currentTimeMillis();
final var countdown = new CountDownLatch(domains.size());
final var seeds = Collections.singletonList(
new Seed(domains.get(0).getMember().getEvent().getCoordinates(), new InetSocketAddress(0)));
new Seed(domains.getFirst().getMember().getEvent().getCoordinates(), new InetSocketAddress(0)));
domains.forEach(d -> {
var listener = new View.ViewLifecycleListener() {

Expand Down
2 changes: 2 additions & 0 deletions thoth/src/main/java/com/salesforce/apollo/thoth/KerlDHT.java
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,8 @@ private <T> void completeIt(CompletableFuture<T> result, HashMultiset<T> gathere
}

private boolean failedMajority(CompletableFuture<?> result, int maxAgree) {
log.error("Unable to achieve majority read, max: {} required: {} on: {}", maxAgree, context.majority(),
member.getId());
return result.completeExceptionally(new CompletionException(
"Unable to achieve majority read, max: " + maxAgree + " required: " + context.majority() + " on: "
+ member.getId()));
Expand Down

0 comments on commit 76365d2

Please sign in to comment.