Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

MySQL NDB Cluster API Developer Guide  /  ...  /  Ndb::isExpectingHigherQueuedEpochs()

2.3.16.24 Ndb::isExpectingHigherQueuedEpochs()

Description.  Check whether higher queued epochs have been seen by the last invocation of Ndb::pollEvents2(), or whether a TE_CLUSTER_FAILURE event was found.

It is possible, after a cluster failure has been detected, for the highest queued epoch returned by pollEvents2() not to be increasing any longer. In this case, rather than poll for more events, you should instead consume events with nextEvent() until it detects a TE_CLUSTER_FAILURE is detected, then reconnect to the cluster when it becomes available again.

This method was added in NDB 7.2.21, NDB 7.3.10, and NDB 7.4.7 (Bug #18753887).

Signature. 

bool isExpectingHigherQueuedEpochs
      (
        void
      )

Parameters.  None.

Return value.  True if queued epochs were seen by the last pollEvents2() call or, in the event of cluster failure.


User Comments
Sign Up Login You must be logged in to post a comment.