diff --git a/server/src/main/java/org/opensearch/common/remote/AbstractRemoteWritableBlobEntity.java b/server/src/main/java/org/opensearch/common/remote/AbstractRemoteWritableBlobEntity.java index 23fc9d3ad77cb..237c077cb673c 100644 --- a/server/src/main/java/org/opensearch/common/remote/AbstractRemoteWritableBlobEntity.java +++ b/server/src/main/java/org/opensearch/common/remote/AbstractRemoteWritableBlobEntity.java @@ -40,6 +40,10 @@ public AbstractRemoteWritableBlobEntity( this.namedXContentRegistry = namedXContentRegistry; } + public AbstractRemoteWritableBlobEntity(final String clusterUUID, final Compressor compressor) { + this(clusterUUID, compressor, null); + } + public abstract BlobPathParameters getBlobPathParameters(); public abstract String getType(); diff --git a/server/src/main/java/org/opensearch/gateway/remote/routingtable/RemoteIndexRoutingTable.java b/server/src/main/java/org/opensearch/gateway/remote/routingtable/RemoteIndexRoutingTable.java index cc1b19fa45195..94af4c3c22d32 100644 --- a/server/src/main/java/org/opensearch/gateway/remote/routingtable/RemoteIndexRoutingTable.java +++ b/server/src/main/java/org/opensearch/gateway/remote/routingtable/RemoteIndexRoutingTable.java @@ -47,7 +47,7 @@ public RemoteIndexRoutingTable( long term, long version ) { - super(clusterUUID, compressor, null); + super(clusterUUID, compressor); this.index = indexRoutingTable.getIndex(); this.indexRoutingTable = indexRoutingTable; this.term = term; @@ -61,7 +61,7 @@ public RemoteIndexRoutingTable( * @param compressor Compressor object */ public RemoteIndexRoutingTable(String blobName, String clusterUUID, Compressor compressor) { - super(clusterUUID, compressor, null); + super(clusterUUID, compressor); this.index = null; this.term = -1; this.version = -1;