diff --git a/server/src/main/java/org/opensearch/common/network/NetworkModule.java b/server/src/main/java/org/opensearch/common/network/NetworkModule.java index f63c5b508b357..5d55fb52c323d 100644 --- a/server/src/main/java/org/opensearch/common/network/NetworkModule.java +++ b/server/src/main/java/org/opensearch/common/network/NetworkModule.java @@ -374,7 +374,7 @@ public Supplier getHttpServerTransportSupplier() { * Multiple transport types can be registered and enabled via AUX_TRANSPORT_TYPES_SETTING. * An IllegalStateException is thrown if a transport type is enabled not registered. */ - public List getAuxServerTransportSupplierList() { + public List getAuxServerTransportList() { List serverTransportSuppliers = new ArrayList<>(); for (String transportType : AUX_TRANSPORT_TYPES_SETTING.get(settings)) { diff --git a/server/src/main/java/org/opensearch/node/Node.java b/server/src/main/java/org/opensearch/node/Node.java index 88895e15f5d12..704a23890b07a 100644 --- a/server/src/main/java/org/opensearch/node/Node.java +++ b/server/src/main/java/org/opensearch/node/Node.java @@ -2117,7 +2117,7 @@ protected HttpServerTransport newHttpTransport(NetworkModule networkModule) { } protected List newAuxTransports(NetworkModule networkModule) { - return networkModule.getAuxServerTransportSupplierList(); + return networkModule.getAuxServerTransportList(); } private static class LocalNodeFactory implements Function { diff --git a/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java b/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java index e1a0ad8f71025..516aa94534f94 100644 --- a/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java @@ -77,7 +77,7 @@ public interface NetworkPlugin { */ abstract class AuxTransport extends AbstractLifecycleComponent { public static final String AUX_SETTINGS_PREFIX = "aux.transport."; - public static final String AUX_TRANSPORT_TYPES_KEY = AUX_SETTINGS_PREFIX + "type"; + public static final String AUX_TRANSPORT_TYPES_KEY = AUX_SETTINGS_PREFIX + "types"; public static final String AUX_PORT_DEFAULTS = "9400-9500"; public static final Setting.AffixSetting AUX_TRANSPORT_PORTS = affixKeySetting( AUX_SETTINGS_PREFIX,