mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Merge branch 'fix/12567-azure-timeout'
This commit is contained in:
commit
725d7f968b
@ -123,7 +123,7 @@ public class AzureStorageServiceImpl extends AbstractLifecycleComponent<AzureSto
|
||||
// Set timeout option. Defaults to 5mn. See cloud.azure.storage.timeout or cloud.azure.storage.xxx.timeout
|
||||
try {
|
||||
int timeout = (int) azureStorageSettings.getTimeout().getMillis();
|
||||
client.getDefaultRequestOptions().setTimeoutIntervalInMs(timeout);
|
||||
client.getDefaultRequestOptions().setMaximumExecutionTimeInMs(timeout);
|
||||
} catch (ClassCastException e) {
|
||||
throw new IllegalArgumentException("Can not convert [" + azureStorageSettings.getTimeout() +
|
||||
"]. It can not be longer than 2,147,483,647ms.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user