Skip to content

Commit

Permalink
Renamed urgent write method
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Oct 23, 2023
1 parent 1311929 commit fc95922
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private String writeGlobalMetadata(ClusterState clusterState) throws IOException
result.set(globalMetadataContainer.path().buildAsString() + globalMetadataFilename);
}, ex -> { throw new GlobalMetadataTransferException(ex.getMessage(), ex); }), latch);

GLOBAL_METADATA_FORMAT.urgentWriteAsync(
GLOBAL_METADATA_FORMAT.writeAsyncWithUrgentPriority(
clusterState.metadata(),
globalMetadataContainer,
globalMetadataFilename,
Expand Down Expand Up @@ -489,7 +489,7 @@ private void writeIndexMetadataAsync(
ex -> latchedActionListener.onFailure(new IndexMetadataTransferException(indexMetadata.getIndex().toString(), ex))
);

INDEX_METADATA_FORMAT.urgentWriteAsync(
INDEX_METADATA_FORMAT.writeAsyncWithUrgentPriority(
indexMetadata,
indexMetadataContainer,
indexMetadataFilename,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void writeAsync(
* Use {@link #writeAsync(ToXContent, BlobContainer, String, Compressor, ActionListener, ToXContent.Params)} for
* other use cases.
*/
public void urgentWriteAsync(
public void writeAsyncWithUrgentPriority(
final T obj,
final BlobContainer blobContainer,
final String name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void testBlobStorePriorityAsyncOperation() throws IOException, Interrupte
CountDownLatch latch = new CountDownLatch(1);

// Write blobs in different formats
checksumSMILE.urgentWriteAsync(
checksumSMILE.writeAsyncWithUrgentPriority(
new BlobObj("cluster state diff"),
spyContainer,
"cluster-state-diff",
Expand Down

0 comments on commit fc95922

Please sign in to comment.