Open p-shidlovsky opened 5 years ago
You must remove market, and there are some old market's operlog on database.
You must remove market, and there are some old market's operlog on database.
What do you mean by removing the market? clean up the database? Which table can store these old markets?
You may have removed some market from config matchengine file.
When i restart server its stops with error in oper_log What makes this happen or what can influence the appearance of an error? How to avoid it?
[2019-05-20 00:02:28.955377] me_persist.c:32(get_last_slice): get last slice time [2019-05-20 00:02:28.955787] me_persist.c:135(init_from_db): last_slice_time: 1558306800, last_oper_id: 10321830, last_order_id: 7188135, last_deals_id: 2415378 [2019-05-20 00:02:28.955823] me_persist.c:65(load_slice_from_db): load orders from: slice_order_1558306800 [2019-05-20 00:02:29.393739] me_persist.c:76(load_slice_from_db): load balance from: slice_balance_1558306800 [2019-05-20 00:02:29.395975] me_persist.c:94(load_operlog_from_db): load oper log from: operlog_20190519 [2019-05-20 00:02:29.408828] me_persist.c:105(load_operlog_from_db): load_operlog from operlog_20190519 fail: -528 ./matchengine.exe: init from db fail: -107
[2019-05-20 00:02:29.364984] [4915] [trace]me_load.c:21(load_orders): exec sql: SELECT
id
,t
,side
,create_time
,update_time
,user_id
,market
,price
,amount
,taker_fee
,maker_fee
,left
,freeze
,deal_stock
,deal_money
,deal_fee
FROMslice_order_1558306800
WHEREid
> 7132116 ORDER BYid
LIMIT 1000 [2019-05-20 00:02:29.373959] [4915] [trace]me_load.c:21(load_orders): exec sql: SELECTid
,t
,side
,create_time
,update_time
,user_id
,market
,price
,amount
,taker_fee
,maker_fee
,left
,freeze
,deal_stock
,deal_money
,deal_fee
FROMslice_order_1558306800
WHEREid
> 7162327 ORDER BYid
LIMIT 1000 [2019-05-20 00:02:29.382065] [4915] [trace]me_load.c:21(load_orders): exec sql: SELECTid
,t
,side
,create_time
,update_time
,user_id
,market
,price
,amount
,taker_fee
,maker_fee
,left
,freeze
,deal_stock
,deal_money
,deal_fee
FROMslice_order_1558306800
WHEREid
> 7182366 ORDER BYid
LIMIT 1000 [2019-05-20 00:02:29.390453] [4915] [trace]me_load.c:21(load_orders): exec sql: SELECTid
,t
,side
,create_time
,update_time
,user_id
,market
,price
,amount
,taker_fee
,maker_fee
,left
,freeze
,deal_stock
,deal_money
,deal_fee
FROMslice_order_1558306800
WHEREid
> 7187016 ORDER BYid
LIMIT 1000 [2019-05-20 00:02:29.393764] [4915] [trace]me_load.c:84(load_balance): exec sql: SELECTid
,user_id
,asset
,t
,balance
FROMslice_balance_1558306800
WHEREid
> 0 ORDER BY id LIMIT 1000 [2019-05-20 00:02:29.395993] [4915] [trace]ut_mysql.c:36(is_table_exists): exec sql: SHOW TABLES LIKE 'operlog_20190519' [2019-05-20 00:02:29.396486] [4915] [trace]me_load.c:498(load_operlog): exec sql: SELECTid
,detail
fromoperlog_20190519
WHEREid
> 10321830 ORDER BYid
LIMIT 1000 [2019-05-20 00:02:29.403646] [4915] [trace]me_load.c:498(load_operlog): exec sql: SELECTid
,detail
fromoperlog_20190519
WHEREid
> 10322830 ORDER BYid
LIMIT 1000 [2019-05-20 00:02:29.408824] [4915] [error]me_load.c:526(load_operlog): load_oper: 10323570:{"method": "cancel_order", "params": [1754, "E2C_ETH", 7189129]} fail: -452 [2019-05-20 00:02:29.408827] [4915] [error]me_persist.c:104(load_operlog_from_db): load_operlog from operlog_20190519 fail: -528