Skip to content

Transaction IDs start at zero and are incremented. #8

@michaelkaye

Description

@michaelkaye

This has a possible failure mode if:

12:00 : matrixmon is started, sending trx_id 0 through (say 720)
18:00 : matrixmon is restarted, losing the local trx_id, causing it to start again at trx_id 0.

The next 6 hours of events will be accepted with a 200 OK by the server (because their transaction ID matches one that has already been accepted) but will not be received by the receiver, showing up as an outage.

When the restarted matrixmon reaches transactionID 721, it will start functioning again.

We should consider initalizing the transaction ID to a timestamp based value here:

https://github.com/matrix-org/matrixmon/blob/master/mon.pl#L152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions