Asias He
54d482afe4
streaming: Test both pushing and pulling of data
stream_plan.transfer_ranges() sends data from local to remote node.
stream_plan.request_ranges() asks remote to send data to local.
After streaming, both nodes contains all the keys.
$ cat /tmp/out1|grep "\[Stream"
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] Executing streaming plan for MYPLAN
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] Starting streaming to 127.0.0.2
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] Sending stream init for incoming stream
[Stream #9fd8c3c0-3023-11e5-b450-000000000000 ID#0] Beginning stream session with 127.0.0.2
[Stream #9fd8c3c0-3023-11e5-b450-000000000000 ID#0] Prepare completed. Receiving 1 files(105553124400080 bytes), sending 1 files(105553124104160 bytes)
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] Session with 127.0.0.2 is complete
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] All sessions completed
$ cat /tmp/out2|grep "\[Stream"
[Stream #9fd8c3c0-3023-11e5-b450-000000000000 ID#0] Creating new streaming plan for MYPLAN
[Stream #9fd8c3c0-3023-11e5-b450-000000000000 ID#0] Received streaming plan for MYPLAN
[Stream #9fd8c3c0-3023-11e5-b450-000000000000 ID#0] Prepare completed. Receiving 1 files(105553124104160 bytes), sending 1 files(105553124400080 bytes)
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] Session with 127.0.0.1 is complete
[Stream #9fd8c3c0-3023-11e5-b450-000000000000] All sessions completed
Node 1
$ sstable2json tmp/1/ks/*/la-1-big-Data.db | grep key | sort
{"key": "1",
{"key": "2",
{"key": "3",
{"key": "4",
{"key": "5",
{"key": "6",
Node 2
$ sstable2json tmp/2/ks/*/la-1-big-Data.db | grep key | sort
{"key": "1",
{"key": "2",
{"key": "3",
{"key": "4",
{"key": "5",
{"key": "6",
2015-07-22 11:49:30 +08:00
..
2015-06-23 16:06:28 +08:00
2015-07-22 11:49:30 +08:00
2015-06-18 23:02:31 +08:00
2015-06-24 16:13:30 +08:00
2015-06-24 16:13:30 +08:00
2015-07-21 16:12:54 +08:00
2015-07-22 11:49:30 +08:00
2015-07-21 16:12:54 +08:00
2015-07-09 15:52:27 +08:00
2015-07-21 16:12:54 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-22 11:49:30 +08:00
2015-07-22 11:49:30 +08:00
2015-07-21 16:12:54 +08:00
2015-07-21 16:12:54 +08:00
2015-06-24 16:13:30 +08:00
2015-07-22 11:49:30 +08:00
2015-07-21 16:12:54 +08:00
2015-07-21 16:12:54 +08:00
2015-07-21 16:12:54 +08:00
2015-06-30 11:43:29 +08:00
2015-07-14 20:41:14 +08:00
2015-07-14 20:41:14 +08:00
2015-07-21 16:12:54 +08:00
2015-07-21 16:12:54 +08:00
2015-07-14 20:41:14 +08:00