etcd-io / etcd-io/jetcd

leaseClient.keepAlive several minutes later will stop

Open
#1,383 6 comments 0 reactions 0 assignees View on GitHub
waiting-for-feedback
Dominant language
Java
Stars
1.2k
Forks
312
Avg merge
5d 4h
Merged PRs (30d)
2

Description

**0.7.7 **
- etcd: 3.5.13
- jetcd: 0.7.7
- java: 21

**Describe the bug**
When I call leaseClient.keepAlive several minutes later the function onCompleted will be called and the keepAlive will stop

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
leaseClient.keepAlive(myselfNodeInfo.getLeaseId(), new StreamObserver() {
@Override
public void onNext(LeaseKeepAliveResponse value) {
log.info("ppppppp get id ={} ttl ={}", value.getID(), value.getTTL());
}

@Override
public void onError(Throwable t) {
log.error("----error", t);
}

@Override
public void onCompleted() {
log.info("================ restart my self");
}
});

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.