Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Now, when the follower is much behind the leader, the leader will send a snapshot, but when the snapshot size is greater than thrift's maxFrameSize, the sending will fail, so that the follower will never catch up with the leader.
I think we need to split the snapshot request and then send it to the follower. But this also brings a problem when we use an asynchronous server. How to ensure the order after the split request is sent to the follower. Two options are possible as follows:
1. Mark the segment number in the header of the request sent by the leader, and splice the request on the follower side.
2. Like the follower downloading TsFile process, the snapshot is downloaded in segments on the follower side, but the snapshot data needs to be persisted on the leader side.
I would like the first one, any ideas about this?
Attachments
Issue Links
- is a child of
-
IOTDB-68 IoTDB supports distributed version
- Open
- is part of
-
IOTDB-1005 [Distributed] Make the frame size of thrift scalable
- Closed