When Token is invalid the watcher will be hung there
See original GitHub issuejetcd 0.4.1
1、For normal request , like kv.get
when token is invalid, the flow will enter
io.grpc.ForwardingClientCallListener.SimpleForwardingClientCallListener#onClose
super.start(new SimpleForwardingClientCallListener<RespT>(responseListener) {
@Override
public void onClose(Status status, Metadata trailers) {
if (isInvalidTokenError(status)) {
try {
refreshToken(next);
} catch (Exception e) {
// don't throw any error here.
// rpc will retry on expired auth token.
}
}
super.onClose(status, trailers);
}
}, headers);
2、for watch request
when token is invalid, the flow will never enter “onClose” to “refreshToken”
it will receive a normal message “Permission Deny”,
io.etcd.jetcd.WatchImpl.WatcherImpl#onNext process the message and return normal. it will not try again.
if (response.getWatchId() == -1) {
listener.onError(newEtcdException(ErrorCode.INTERNAL, "etcd server failed to create watch id"));
return;
}
There is no chance for watcher to refresh Token,. the watcher is hanging there…
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
9.2 Character Transfer Token Known Issues - Triad New Home Guide
9.2 Character Transfer Token Known Issues. things you can do to make money at home. Release date: 2022-10-10 17:21:34 Author:sdwNUnKm.
Read more >Troubleshooting AWS Cloud9
Cause: An invalid security token can result if you have AWS managed temporary credentials enabled and one of the following occurred:.
Read more >Troubleshooting - Harness.io Docs
Some issues arise from invalid credentials due to expiry or access issues resulting from missing policies or cross project requirements in a ...
Read more >Fix packs for DataPower Gateway version 10.0.1.x - IBM
THE CRYPTO-BINARY ACTION GOES DOWN DUE TO NO DATAGLUE LICENSE. IT35868, INVALID SUBSCRIBER DATA NOT DELETED IN THE LOCAL CACHE. IT35869, DATAPOWER MIGHT...
Read more >ZooKeeper Administrator's Guide
If you have three ZooKeeper servers, but their network cables are all plugged into the same network switch, then the failure of that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Figured out the issue. Watcher hangs when token is invalid and we try to register new watch. I will try to fix it and open new PR.
Fixed by #729