-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor merge scheduling code to allow overrides (#114547)
This code refactors how the merge scheduler is configured to allow different engine implementations to configure different merge schedulers.
- Loading branch information
1 parent
35fd893
commit a8de554
Showing
5 changed files
with
226 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
server/src/main/java/org/elasticsearch/index/engine/ElasticsearchMergeScheduler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
package org.elasticsearch.index.engine; | ||
|
||
import org.apache.lucene.index.MergeScheduler; | ||
import org.elasticsearch.index.merge.MergeStats; | ||
import org.elasticsearch.index.merge.OnGoingMerge; | ||
|
||
import java.util.Set; | ||
|
||
public interface ElasticsearchMergeScheduler { | ||
|
||
Set<OnGoingMerge> onGoingMerges(); | ||
|
||
MergeStats stats(); | ||
|
||
void refreshConfig(); | ||
|
||
MergeScheduler getMergeScheduler(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.