Xavi
23c68b42ff
Merge pull request #33 from wwwjfy/fix-shutdown-requested
...
Fix shutdown requested
2018-12-11 16:28:37 -08:00
Tony Wang
c3ff544d00
fix incompatible Record struct in KCL v2
2018-10-18 16:43:58 +08:00
Tony Wang
06838386db
fix review comments
2018-10-18 15:50:44 +08:00
Tony Wang
e7b75a20ac
handle shutdown requested message
...
Message type shutdownRequested doesn't have reason, which causes
checkpoint on termination not work.
This commit is to ask KCL daemon to checkpoint on shutdownRequested.
2018-10-14 18:29:17 +08:00
Xavi Ramirez
b07ad4c1c2
Cleaned up shutdown code
2017-09-20 21:28:43 +00:00
Xavi Ramirez
7f2afe9d8f
Send nil showdown signal immediately
2017-09-20 04:58:40 +00:00
Xavi Ramirez
09ea3282af
Standardized error reporting
2017-08-20 23:42:27 +00:00
Xavi Ramirez
22915133fe
Fixed edge case where the beginnings of messages would sometimes get chopped off as a result of creating a new buffered reader each time we'd read a line.
2017-08-20 03:28:50 +00:00
Xavi Ramirez
b385278e04
More properly handle errors from KCL
2017-08-18 01:47:28 +00:00
Xavi Ramirez
55aeecddd7
Renamed IsEmpty to IsNil on SequencePair
2017-08-10 20:16:41 +00:00
Xavi Ramirez
dd9da85055
Fixed type-o
2017-08-10 19:15:53 +00:00
Xavi Ramirez
b7743c9ea7
Added a more coherent shutdown pathway
2017-08-09 01:22:11 +00:00
Xavi Ramirez
4809cdb4e6
Another refactor to simply and likely speed up code. New code allows checkpoint and readline messages to be interleaved.
2017-08-07 19:20:56 +00:00
Xavi Ramirez
734b46274f
Better coordinated checkpoints and readlines. Checkpoint function now returns all errors.
2017-08-07 19:20:56 +00:00
Xavi Ramirez
b19c9297d8
Adjusted some locks
2017-08-07 19:20:56 +00:00
Xavi Ramirez
c814742afa
Another refactor
2017-08-07 19:20:56 +00:00
Xavi Ramirez
c5f75d6554
Fixed another race-condition. Ensure line is completely processed before allowing a checkpoint.
2017-08-07 19:20:56 +00:00
Xavi Ramirez
ba951ff0da
Refactor to fix dead locks and race conditions.
2017-08-07 19:20:56 +00:00
Xavi Ramirez
0cb14948a3
KCL more aggressively logs errors
2017-07-21 01:27:17 +00:00
Xavi Ramirez
b0f769bfa7
Breaking change to KCL. Created Checkpointer interface to make testing easier.
2017-07-21 01:25:02 +00:00
Xavi Ramirez
458e66e321
Added shutdown method to *Checkerpointer struct
2017-05-22 23:06:56 +00:00
Xavi Ramirez
5f507ab116
Moved retry and error handling logic to Checkpointer class
2017-05-22 23:06:16 +00:00
Xavi Ramirez
3c56b57e6b
Added mutex to Checkpoint function to avoid racey conditions
2017-05-19 22:30:11 +00:00
Xavi Ramirez
17cfe98efa
Users of this library can now cache the checkpointer object
2017-05-19 22:01:57 +00:00
Rafael Garcia
bea2abc691
allow for empty checkpoints on shutdown
2017-05-18 00:46:29 +00:00
Rafael Garcia
39e5fa5860
initial commit
2017-02-08 20:23:00 +00:00