Skip to content

Commit

Permalink
fix: forbidden string format without locale
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Dec 13, 2024
1 parent 657e11f commit 23a532d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ private static Request bulkRequest(final String indexName, int numberOfDocuments
}

private static String shardChangesEndpoint(final String indexName) {
return String.format(CCR_SHARD_CHANGES_ENDPOINT, indexName);
return String.format(Locale.ROOT, CCR_SHARD_CHANGES_ENDPOINT, indexName);
}

private static String bulkEndpoint(final String indexName) {
return String.format(BULK_INDEX_ENDPOINT, indexName);
return String.format(Locale.ROOT, BULK_INDEX_ENDPOINT, indexName);
}

private void assertResponseException(final ResponseException ex, final RestStatus restStatus, final String error) {
Expand Down

0 comments on commit 23a532d

Please sign in to comment.