-
Notifications
You must be signed in to change notification settings - Fork 111
Missing orders during OrderSync #871
Comments
@pgebheim you are not alone, I have the same problem, with version 9.4.1. This means, PR 874 doesn't fix this. now, I checked how long ago this problematic order was inserted, and it was 1 hour before it was shown as missing. So, it stayed for 1 hour in the Node, then suddenly it was reported as missing, then 1 minute later, on the next sync, it was reported as existent again.
I am using 9.4.1 from master (commit c163356 to be specific) as server, and client sources are from 9.4.0 |
@jalextowle what about providing another RPC function like In my case, this function would help to double check if order exists, before I delete it locally, so this way I would prevent deletion even if |
@nuliknol -- btw Augur runs with 10.0.0-unstable-5 browser-mesh at the moment. It has a bit of a custom WASM build that is being readied for a mainline 10.0.0 0x release. The main bugs here were fixed in that release. |
Context
Please provide any relevant information about your setup
We are testing this by using a standalone node which is the recipient of orders which then relays them through the p2p network. During order sync we see behavior where orders are partially synced, and then refreshing the page will progressively sync more orders until we have all of the orders that we knowingly posted.
One issue is I don't have good logs for this because it is running in a webworker and at the moment I'm not actually getting those logs spit out to the FF or Chrome consoles even through they should be.
Here's some screenshots detailing what has happened after there are N-thousand orders posted on an augur market.
Step 1
Window on the left: I wiped the databases entirely so we're starting from a fresh state. After OrderSync is done it looks like I received a total of 16 orders (this is the only market on mainnet, all orders are of size 10 -- 160 shares = 16 orders).
The window on the right was a browser open while orders were created. Those orders are still valid.
So it looks like I got 16 orders during OrderSync...
Step 2
Now, refresh the left window and orders are streaming in from OrderSync -- So the explanation here could be that we just happened to randomly select 5 peers that didn't have orders on the previous load.
Now waiting I see a bunch of orders come in, and then it stops and I receive no more with the following state which is missing > 300 orders.
Step 3
Refresh again, I get more orders and now I have all the ones that the other browser knows about.
Oddly, for 0.56 I actually find the 270 orders that I never received in the initial browser window (on the right). Also notable, I never get those orders on that side, I've refreshed a bunch etc.
So something must be wrong during ordersync because whatever nodes its talking to has these orders -- but the local syncing just stops getting them...
Step 4
Clear the state from the window on the RIGHT which previously had all the orders. On the first load it loads 16 orders, just like during step 1!
Step 5
Refresh the window on the right, OrdersStream in in big blocks (200-300) during the ordersync period. And now both tabs have all known published orders on this market.
The text was updated successfully, but these errors were encountered: