Bolt message state transitions in version 4.x

This section lists all Bolt message state transitions available in version 4.x.

State Request message Triggers signal Server response summary message New state

CONNECTED

HELLO

SUCCESS {}

READY

CONNECTED

HELLO

FAILURE {}

DEFUNCT

READY

RUN

SUCCESS {}

STREAMING

READY

RUN

FAILURE {}

FAILED

READY

BEGIN

SUCCESS {}

TX_READY

READY

BEGIN

FAILURE {}

FAILED

READY

ROUTE

SUCCESS {}

READY

READY

ROUTE

FAILURE {}

FAILED

READY

RESET

<INTERRUPT>

n/a

READY

GOODBYE

<DISCONNECT>

n/a

DEFUNCT

STREAMING

PULL

SUCCESS {"has_more": true}

STREAMING

STREAMING

PULL

SUCCESS {"has_more": false} or SUCCESS {}

READY

STREAMING

PULL

FAILURE {}

FAILED

STREAMING

DISCARD

SUCCESS {"has_more": true}

STREAMING

STREAMING

DISCARD

SUCCESS {"has_more": false} or SUCCESS {}

READY

STREAMING

DISCARD

FAILURE {}

FAILED

STREAMING

RESET

<INTERRUPT>

n/a

STREAMING

GOODBYE

<DISCONNECT>

n/a

DEFUNCT

TX_READY

RUN

SUCCESS {"qid": id::Integer}

TX_STREAMING

TX_READY

RUN

FAILURE {}

FAILED

TX_READY

COMMIT

SUCCESS {}

READY

TX_READY

COMMIT

FAILURE {}

FAILED

TX_READY

ROLLBACK

SUCCESS {}

READY

TX_READY

ROLLBACK

FAILURE {}

FAILED

TX_READY

RESET

<INTERRUPT>

n/a

TX_READY

GOODBYE

<DISCONNECT>

n/a

DEFUNCT

TX_STREAMING

RUN

SUCCESS {"qid": id::Integer}

TX_STREAMING

TX_STREAMING

RUN

FAILURE {}

FAILED

TX_STREAMING

PULL

SUCCESS {"has_more": true}

TX_STREAMING

TX_STREAMING

PULL

SUCCESS {"has_more": false} or SUCCESS {}

TX_READY or TX_STREAMING if there are other streams open

TX_STREAMING

PULL

FAILURE {}

FAILED

TX_STREAMING

DISCARD

SUCCESS {"has_more": true}

TX_STREAMING

TX_STREAMING

DISCARD

SUCCESS {"has_more": false} or SUCCESS {}

TX_READY or TX_STREAMING if there are other streams open

TX_STREAMING

DISCARD

FAILURE {}

FAILED

TX_STREAMING

RESET

<INTERRUPT>

n/a

TX_STREAMING

GOODBYE

<DISCONNECT>

n/a

DEFUNCT

FAILED

RUN

IGNORED

FAILED

FAILED

PULL

IGNORED

FAILED

FAILED

DISCARD

IGNORED

FAILED

FAILED

BEGIN

IGNORED

FAILED

FAILED

COMMIT

IGNORED

FAILED

FAILED

ROLLBACK

IGNORED

FAILED

FAILED

ROUTE

IGNORED

FAILED

FAILED

RESET

<INTERRUPT>

n/a

FAILED

GOODBYE

<DISCONNECT>

n/a

DEFUNCT

INTERRUPTED

RUN

IGNORED

INTERRUPTED

INTERRUPTED

PULL

IGNORED

INTERRUPTED

INTERRUPTED

DISCARD

IGNORED

INTERRUPTED

INTERRUPTED

BEGIN

IGNORED

INTERRUPTED

INTERRUPTED

COMMIT

IGNORED

INTERRUPTED

INTERRUPTED

ROLLBACK

IGNORED

INTERRUPTED

INTERRUPTED

ROUTE

IGNORED

INTERRUPTED

INTERRUPTED

RESET

<INTERRUPT>

SUCCESS {}

READY

INTERRUPTED

RESET

<INTERRUPT>

FAILURE {}

DEFUNCT

INTERRUPTED

GOODBYE

<DISCONNECT>

n/a

DEFUNCT

Table 1. The <INTERRUPT> signal
State Signal Server response summary message New state

READY

<INTERRUPT>

n/a

INTERRUPTED

STREAMING

<INTERRUPT>

n/a

INTERRUPTED

TX_READY

<INTERRUPT>

n/a

INTERRUPTED

TX_STREAMING

<INTERRUPT>

n/a

INTERRUPTED

FAILED

<INTERRUPT>

n/a

INTERRUPTED

INTERRUPTED

<INTERRUPT>

n/a

INTERRUPTED