question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When Token is invalid the watcher will be hung there

See original GitHub issue

jetcd 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lukasz-antoniakcommented, Mar 29, 2020

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.

0reactions
lburgazzolicommented, Mar 30, 2020

Fixed by #729

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found