MCPcopy Create free account
hub / github.com/apache/mesos / timedout

Method timedout

src/zookeeper/group.cpp:482–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481
482void GroupProcess::timedout(int64_t sessionId)
483{
484 if (error.isSome()) {
485 return;
486 }
487
488 CHECK_NOTNULL(zk);
489
490 // The connect timer can be reset or replaced and `zk`
491 // can be replaced since this method was dispatched.
492 if (connectTimer.isSome() &&
493 connectTimer->timeout().expired() &&
494 zk->getSessionId() == sessionId) {
495 LOG(WARNING) << "Timed out waiting to connect to ZooKeeper. "
496 << "Forcing ZooKeeper session "
497 << "(sessionId=" << std::hex << sessionId << ") expiration";
498
499 // Locally determine that the current session has expired.
500 dispatch(self(), &Self::expired, zk->getSessionId());
501 }
502}
503
504
505void GroupProcess::expired(int64_t sessionId)

Callers

nothing calls this directly

Calls 5

dispatchFunction · 0.50
isSomeMethod · 0.45
expiredMethod · 0.45
timeoutMethod · 0.45
getSessionIdMethod · 0.45

Tested by

no test coverage detected