Skip to content

Make peer recovery send file chunks async #44040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
25d0156
Peer recovery sends file chunks non-blocking
dnhatn Jun 24, 2019
782920c
read ahead
dnhatn Jul 6, 2019
eb4b097
Revert "read ahead"
dnhatn Jul 6, 2019
8d64abe
style check
dnhatn Jul 6, 2019
5c1977a
merge MultiFileReader
dnhatn Jul 8, 2019
93d45c4
inline
dnhatn Jul 8, 2019
472bd70
report error in the loop
dnhatn Jul 8, 2019
97b2099
henning’s comment
dnhatn Jul 9, 2019
ec2194f
move checking error down
dnhatn Jul 9, 2019
e8dfd75
integrate with AsyncIOProcessor
dnhatn Jul 9, 2019
649aad2
Merge branch 'master' into send-chunks
dnhatn Jul 9, 2019
6065672
use single buffer
dnhatn Jul 10, 2019
77d00ef
prepare for ccr
dnhatn Jul 10, 2019
3a398b4
naming
dnhatn Jul 10, 2019
32dccb3
style check
dnhatn Jul 11, 2019
2d9aae8
integrate with ccr
dnhatn Jul 11, 2019
d49922f
Revert "integrate with ccr"
dnhatn Jul 11, 2019
a41592c
Henning’s comments
dnhatn Jul 11, 2019
6e3546d
Merge branch 'master' into send-chunks
dnhatn Jul 11, 2019
28e2664
unused settings
dnhatn Jul 11, 2019
28cface
wording
dnhatn Jul 11, 2019
caab1de
Merge branch 'master' into send-chunks
dnhatn Jul 12, 2019
78a8a4e
remove not used resp now
dnhatn Jul 12, 2019
6f8f7a4
add status enum
dnhatn Jul 12, 2019
c2b3fdf
read ahead
dnhatn Jul 12, 2019
dc60dd8
Merge branch 'master' into send-chunks
dnhatn Jul 12, 2019
d582b09
add status to assertion
dnhatn Jul 12, 2019
fb8bb6e
notify once
dnhatn Jul 13, 2019
8cf85d5
missing word in comment
dnhatn Jul 13, 2019
6d76894
let bubble up exception
dnhatn Jul 15, 2019
21c2a0a
super close
dnhatn Jul 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private RecoverySourceHandler createRecoverySourceHandler(StartRecoveryRequest r
final RemoteRecoveryTargetHandler recoveryTarget =
new RemoteRecoveryTargetHandler(request.recoveryId(), request.shardId(), transportService,
request.targetNode(), recoverySettings, throttleTime -> shard.recoveryStats().addThrottleTime(throttleTime));
handler = new RecoverySourceHandler(shard, recoveryTarget, request,
handler = new RecoverySourceHandler(shard, recoveryTarget, request, shard.getThreadPool().generic(),
Math.toIntExact(recoverySettings.getChunkSize().getBytes()), recoverySettings.getMaxConcurrentFileChunks());
return handler;
}
Expand Down
Loading