Commit graph

50 commits

Author SHA1 Message Date
ansuz
48deced859 fix serverside index corruption 2020-06-16 04:08:03 -04:00
ansuz
4037270a23 add a FIXME note for a sketchy implementation in history keeper 2020-05-04 15:46:08 -04:00
ansuz
02347d134a queue signature validation per-channel to ensure correct ordering 2020-04-30 18:18:05 -04:00
ansuz
8bee95d13d improve error reporting in GET_HISTORY 2020-04-28 16:56:11 -04:00
ansuz
b56c73be6e delegate more work from getOlderHistory to the worker 2020-04-17 17:01:47 -04:00
ansuz
4e57e390da write tasks inside of workers 2020-04-16 16:37:24 -04:00
ansuz
0465f31a45 add a FIXME note 2020-04-16 13:02:27 -04:00
ansuz
e0a6852b79 correctly serialize an error log 2020-04-16 10:45:18 -04:00
yflory
32406a5995 Merge branch 'master' into staging 2020-04-02 10:23:09 +02:00
ansuz
834c96a4fc update comments and remove some notes 2020-04-01 17:43:40 -04:00
ansuz
ed5d97f899 WIP history-keeper fixes 2020-04-01 11:48:16 -04:00
ansuz
eddbe80eef Merge branch 'soon' into staging 2020-03-30 18:30:34 -04:00
ansuz
77961e3954 trim lookup tables for channels without checkpoints 2020-03-30 18:03:37 -04:00
ansuz
db9eaa8d4f Merge branch 'soon' into staging 2020-03-27 19:59:45 -04:00
ansuz
b5649707d1 export 'tryParse' command 2020-03-27 15:36:34 -04:00
ansuz
64b0879984 improve logging for parse errors 2020-03-27 15:15:54 -04:00
ansuz
9dbd32758a improve worker logging and move blob deletion to worker processes as well 2020-03-27 13:38:27 -04:00
ansuz
5f2d7c8dcf increase worker rpc wait time before timeout 2020-03-26 15:53:00 -04:00
ansuz
33e8e65507 handle errors in the server's workers 2020-03-26 15:13:20 -04:00
ansuz
a4c8039cc7 improve error handling with rpc response API 2020-03-26 14:45:24 -04:00
yflory
e15196bd53 Merge branch 'reconnect' into staging 2020-03-26 15:24:38 +01:00
ansuz
14feef1757 calculate pin list checksums in a worker 2020-03-25 18:37:42 -04:00
ansuz
70a0d4efb4 move more database reads into the database worker 2020-03-25 17:43:57 -04:00
ansuz
4ba36a9173 load user pins in the database worker 2020-03-25 11:39:14 -04:00
ansuz
50e8893b24 move the 'getOlderHistory' call into the database worker 2020-03-25 10:54:29 -04:00
ansuz
471e374533 compute metadata in the same child process that builds indexes 2020-03-24 17:43:15 -04:00
ansuz
967ca6afa9 suppress ENOENT errors when checking empty chat channels 2020-03-24 15:02:26 -04:00
ansuz
40251948d4 check authenticated rpc signatures in separate threads 2020-03-24 14:31:40 -04:00
ansuz
2ef0af29e5 guard against index worker rpc responses for a txid with no supplied callback 2020-03-23 22:03:59 -04:00
ansuz
4522ffa18a compute indexes in child processes 2020-03-19 10:46:18 -04:00
ansuz
f8ad649b45 [style] bail out early to avoid nesting 2020-03-18 10:30:42 -04:00
ansuz
019e5e708b wrap workers in a function scope and add a validateMessage method to HK's Env 2020-03-17 17:23:35 -04:00
ansuz
5467e1ffac replace ad-hoc response handler with Util.response 2020-03-17 16:52:41 -04:00
ansuz
9e85a1411e abstract the logic around worker choice out of message handling 2020-03-17 16:06:01 -04:00
yflory
923616aef0 Use each process in order instead of using a random one 2020-03-17 15:10:23 +01:00
yflory
fb0eb1b20c Use more subprocesses 2020-03-17 14:18:41 +01:00
yflory
0d636dabc9 Check signature for history keeper in a different process 2020-03-17 13:29:53 +01:00
yflory
578042154e Better reconnect after invalid lastKnownHash 2020-03-13 17:39:16 +01:00
ansuz
bc034d95a3 enforce asynchrony in 'gethistoryOffset' 2020-03-12 11:13:23 -04:00
ansuz
4e8ebac3c1 guard against the possible non-existence of metadata for a channel 2020-03-09 17:42:10 -04:00
ansuz
9d8bb43d03 finally untangle metadata and index caches 2020-03-04 12:56:33 -05:00
ansuz
170aa6d47e clean up a few tasks related to allow lists 2020-03-03 15:52:49 -05:00
ansuz
542150b775 merge server components from staging 2020-02-25 10:09:35 -05:00
ansuz
386add7c58 fix an invalid use of dropChannel 2020-02-21 13:46:11 -05:00
ansuz
3f606d8c75 remove some duplicated code 2020-02-14 16:45:53 -05:00
yflory
0f697ac865 Merge branch 'staging' into communities-trim 2020-02-11 11:10:12 +01:00
ansuz
57be324850 remove some XXX notes 2020-02-10 10:01:02 -05:00
ansuz
7000be0e70 clean up historykeeper 2020-02-07 18:58:57 -05:00
ansuz
b922860339 drop usage of historyKeeper.setConfig 2020-01-27 18:54:16 -05:00
ansuz
9cdf54aff2 untested implementation of trimHistory 2020-01-23 17:58:24 -05:00