Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ private void processError(Throwable t) {
}

Status status = Status.fromThrowable(t);
if (this.isHaltError(status) || this.isNoLeaderError(status)) {
if (EtcdWatchClient.isHaltError(status) || EtcdWatchClient.isNoLeaderError(status)) {
this.notifyWatchers(toEtcdException(status));
this.closeGrpcWatchStreamObserver();
this.cancelSet.clear();
Expand Down Expand Up @@ -291,7 +291,7 @@ private void processCreate(WatchResponse response) {
private Optional<WatchRequest> nextResume() {
EtcdWatcher pendingWatcher = this.pendingWatchers.peek();
if (pendingWatcher != null) {
return Optional.of(this.toWatchCreateRequest(pendingWatcher));
return Optional.of(EtcdWatchClient.toWatchCreateRequest(pendingWatcher));
}
return Optional.empty();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ private void claimOwnership(int lockEpoch) {
private void unlockInternal(final CompletableFuture<Void> promise) {

// already closed or expired, nothing to cleanup
this.epochUpdater.incrementAndGet(this);
ZKSessionLock.epochUpdater.incrementAndGet(this);
if (null != watcher) {
this.zkClient.unregister(watcher);
}
Expand Down