myelnet / pop

Run a point-of-presence within Myel, the community powered content delivery network.
https://myel.dev
BSD 3-Clause "New" or "Revised" License
38 stars 3 forks source link

TestMultiTx is racy #152

Open tchardin opened 3 years ago

tchardin commented 3 years ago

Failed in CI with output:

{"level":"error","error":"No state for /1626167599029: datastore: key not found","time":"2021-07-13T09:13:20Z","message":"attempting to configure data store"}
2021-07-13T09:13:20.035Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `4`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:20.035Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `4`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
{"level":"error","error":"No state for /1626167599030: datastore: key not found","time":"2021-07-13T09:13:20Z","message":"attempting to configure data store"}
2021-07-13T09:13:20.051Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `4`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:20.051Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `4`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:20.053Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `6`, event `27`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
    tx_test.go:415: could not finish gtx2
tchardin commented 3 years ago

Wondering if this Preload test failing is related:

{"level":"info","time":"2021-07-13T09:13:08Z","message":"starting query"}
{"level":"info","time":"2021-07-13T09:13:08Z","message":"waiting for triage"}
{"level":"info","time":"2021-07-13T09:13:08Z","message":"selected an offer"}
{"level":"info","time":"2021-07-13T09:13:08Z","message":"started transfer"}
{"level":"error","error":"No state for /1626167587420: datastore: key not found","time":"2021-07-13T09:13:08Z","message":"attempting to configure data store"}
{"level":"info","time":"2021-07-13T09:13:08Z","message":"finished transfer"}
{"level":"info","time":"2021-07-13T09:13:08Z","message":"starting query"}
{"level":"info","time":"2021-07-13T09:13:08Z","message":"started transfer"}
{"level":"error","error":"No state for /1626167587421: datastore: key not found","time":"2021-07-13T09:13:08Z","message":"attempting to configure data store"}
2021-07-13T09:13:08.440Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `4`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:08.440Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `4`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:08.440Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `5`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:08.441Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `0`, event `6`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
2021-07-13T09:13:08.444Z    ERROR   fsm fsm/fsm.go:92   Executing event planner failed: Invalid transition in queue, state `13`, event `10`:
    github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
        /home/runner/go/pkg/mod/github.com/filecoin-project/go-statemachine@v0.0.0-20200925024713-05bd7c71fbfe/fsm/eventprocessor.go:137
{"level":"error","error":"context timeout","channel":"f0101","time":"2021-07-13T09:13:17Z","message":"waiting for voucher to submit"}
{"level":"info","time":"2021-07-13T09:13:17Z","message":"redeemed payment vouchers"}
{"level":"info","time":"2021-07-13T09:13:17Z","message":"starting query"}
{"level":"info","time":"2021-07-13T09:13:17Z","message":"starting query"}
    node_test.go:759: 
            Error Trace:    node_test.go:759
            Error:          An error is expected but got nil.
            Test:           TestPreload