yowcow / goromdb

Yet another single process KVS server implemented over file-based database
The Unlicense
12 stars 5 forks source link

Fix bolt and berkeleydb storage locking #82

Closed yowcow closed 6 years ago

yowcow commented 6 years ago

Fixes #81

yowcow commented 6 years ago
2018/07/23 20:52:46 simplehandler got a new file to load at '_watcher/data.db'
2018/07/23 20:52:46 simplehandler loading data from '_storage/data00/data.db'
2018/07/23 20:52:46 simplehandler successfully loaded data from '_storage/data00/data.db'
2018/07/23 20:52:46 simplehandler successfully removed previously loaded file
2018/07/23 20:52:46 simplehandler got a new file to load at '_watcher/data.db'
2018/07/23 20:52:46 simplehandler loading data from '_storage/data01/data.db'
2018/07/23 20:52:46 simplehandler successfully loaded data from '_storage/data01/data.db'
2018/07/23 20:52:46 simplehandler successfully removed previously loaded file
2018/07/23 20:52:47 watcher finished watching for file: _watcher/data.db
2018/07/23 20:52:47 simplehandler finished
2018/07/23 20:52:47 ===== errors during `Get()` calls =====

got no error under stress.

yowcow commented 6 years ago

whereas on current master:

2018/07/24 09:56:43 worker 727 got error: database not open
2018/07/24 09:56:43 worker 790 got error: database not open
2018/07/24 09:56:43 worker 527 got error: database not open
2018/07/24 09:56:43 worker 690 got error: database not open
2018/07/24 09:56:43 worker 587 got error: database not open
2018/07/24 09:56:43 worker 561 got error: database not open
2018/07/24 09:56:43 worker 548 got error: database not open
2018/07/24 09:56:43 worker 714 got error: database not open
2018/07/24 09:56:43 worker 235 got error: database not open
2018/07/24 09:56:43 worker 356 got error: database not open
2018/07/24 09:56:43 worker 392 got error: database not open
2018/07/24 09:56:43 worker 533 got error: database not open
2018/07/24 09:56:43 worker 862 got error: database not open
2018/07/24 09:56:43 worker 995 got error: database not open
2018/07/24 09:56:43 worker 941 got error: database not open
2018/07/24 09:56:43 worker 610 got error: database not open
2018/07/24 09:56:43 worker 473 got error: database not open

got so many database not open errors.

problem fixed.