Skip to content

Commit e1437e8

Browse files
committed
move note about removal of InitialClusterStateCustomSupplier to top-level class
1 parent 8911179 commit e1437e8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

server/src/main/java/org/elasticsearch/plugins/ClusterPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ default void onNodeStarted() {
7070
* Returns a map of {@link ClusterState.Custom} supplier that should be invoked to initialize the initial clusterstate.
7171
* This allows custom clusterstate extensions to be always present and prevents invariants where clusterstates are published
7272
* but customs are not initialized.
73+
*
74+
* TODO: Remove this whole concept of InitialClusterStateCustomSupplier, it's not used anymore
7375
*/
7476
default Map<String, Supplier<ClusterState.Custom>> getInitialClusterStateCustomSupplier() { return Collections.emptyMap(); }
7577
}

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/Security.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -903,12 +903,6 @@ public UnaryOperator<Map<String, IndexTemplateMetaData>> getIndexTemplateMetaDat
903903
};
904904
}
905905

906-
@Override
907-
public Map<String, Supplier<ClusterState.Custom>> getInitialClusterStateCustomSupplier() {
908-
// TODO: Remove this whole concept of InitialClusterStateCustomSupplier
909-
return Collections.emptyMap();
910-
}
911-
912906
@Override
913907
public Function<String, Predicate<String>> getFieldFilter() {
914908
if (enabled) {

0 commit comments

Comments
 (0)