Skip to content

candles: investigate cache sync delays #2197

@norwnd

Description

@norwnd

Similar to #2168, much less critical, but I'd like to investigate it further still.

In #2195 (comment) I described what looks like "a noticiable delay in candle cache sync (between dexc cache and server data)",

it is very noticeable for me now (laptop lid was closed for ~1h with dexc running), it didn't auto-recover (page refresh doesn't help) for ~40 mins:

image

observed on 6a93d24, but I do plan to reproduce it with #2195 (comment) changes, in case it affects anything.

full log: candles-gap-lid-closed.txt

Relevant part of the log for the moment when "auto-recovery" happened:

2023-03-02 05:55:15.588 [TRC] CORE[dcr_btc][book]: Validating match proof note for epoch 167773661 (dcr_btc) with 1 preimages and 0 misses.
2023-03-02 05:55:38.429 [TRC] CORE[dcr_btc][book]: Validating match proof note for epoch 167773663 (dcr_btc) with 3 preimages and 0 misses.
2023-03-02 05:56:15.587 [TRC] CORE[dcr_btc][book]: Validating match proof note for epoch 167773667 (dcr_btc) with 1 preimages and 0 misses.
2023/03/02 09:01:05 "GET http://127.0.0.1:5758/orders HTTP/1.1" from 127.0.0.1:59638 - 200 11660B in 5.055102ms
2023-03-02 06:01:05.205 [TRC] WEB[WS]: message of type 1 received for route unmarket
2023/03/02 09:01:05 "POST http://127.0.0.1:5758/api/orders HTTP/1.1" from 127.0.0.1:59638 - 200 24B in 436.669µs
2023/03/02 09:01:07 "GET http://127.0.0.1:5758/settings HTTP/1.1" from 127.0.0.1:59638 - 200 25760B in 1.749868ms
2023-03-02 06:01:55.613 [TRC] CORE[dcr_btc][book]: Validating match proof note for epoch 167773701 (dcr_btc) with 1 preimages and 0 misses.
2023-03-02 06:02:05.206 [DBG] CORE: Unsubscribing from the dcr_btc order book for dex.decred.org:7232
2023-03-02 06:02:05.456 [ERR] CORE: Route 'match_proof' notification handler error (DEX dex.decred.org:7232): no order book found with market id "dcr_btc"
2023-03-02 06:02:05.456 [ERR] CORE: Route 'epoch_report' notification handler error (DEX dex.decred.org:7232): no order book found with market id 'dcr_btc'
2023/03/02 09:02:45 "GET http://127.0.0.1:5758/markets HTTP/1.1" from 127.0.0.1:59654 - 200 49293B in 1.81263ms
2023-03-02 06:02:45.353 [TRC] WEB[WS]: message of type 1 received for route loadmarket
2023-03-02 06:02:45.353 [DBG] CORE: Subscribing to the dcr_btc order book for dex.decred.org:7232
2023-03-02 06:02:45.945 [DBG] CORE[dcr_btc][book]: Processing 0 cached order notes
2023-03-02 06:02:45.945 [TRC] WEB[WS]: message of type 1 received for route loadcandles
2023-03-02 06:03:35.714 [TRC] CORE[dcr_btc][book]: Validating match proof note for epoch 167773711 (dcr_btc) with 7 preimages and 0 misses.
2023-03-02 06:03:45.771 [TRC] CORE[dcr_btc][book]: Validating match proof note for epoch 167773712 (dcr_btc) with 6 preimages and 0 misses.

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