diff options
author | Yannick Welsch <yannick@welsch.lu> | 2017-06-07 17:11:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-07 17:11:27 +0200 |
commit | 26ec89173bc3a008070e081879e049f2eeecb614 (patch) | |
tree | 104171a8053d0b1a13e672952a32381f199d4ebe /test/framework/src/main | |
parent | c8bf7ecaeda5f0670e67b8af1619d78da595fa21 (diff) |
Remove TranslogRecoveryPerformer (#24858)
Splits TranslogRecoveryPerformer into three parts:
- the translog operation to engine operation converter
- the operation perfomer (that indexes the operation into the engine)
- the translog statistics (for which there is already RecoveryState.Translog)
This makes it possible for peer recovery to use the same IndexShard interface as bulk shard requests (i.e. Engine operations instead of Translog operations). It also pushes the "fail on bad mapping" logic outside of IndexShard. Future pull requests could unify the BulkShard and peer recovery path even more.
Diffstat (limited to 'test/framework/src/main')
-rw-r--r-- | test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java b/test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java index 515e01c040..a4d587b483 100644 --- a/test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java @@ -365,7 +365,7 @@ public abstract class IndexShardTestCase extends ESTestCase { } } - private DiscoveryNode getFakeDiscoNode(String id) { + protected DiscoveryNode getFakeDiscoNode(String id) { return new DiscoveryNode(id, id, buildNewFakeTransportAddress(), Collections.emptyMap(), EnumSet.allOf(DiscoveryNode.Role.class), Version.CURRENT); } |