-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCS repository snapshot fails intermittently on some shards "Failed to check if blob exists" java.io.IOException: insufficient data written #26636
Comments
@tlrx this looks very GCE-specific and I am traveling until the end of the week. Could you take a look? |
According to googleapis/google-http-java-client#333 the error message |
@imotov Sorry, I didn't manage to find the time to look at this. I think it makes sense to upgrade the dependency but we'll have to wait for 1.24 to be released. |
You are right, for some reason I thought they are already did, but it looks we will have to wait quite a bit. |
@tlrx can you think of any way to move this thing forward besides waiting for 1.24 release? The patch was merged almost a year ago and it still didn't make it into any releases. |
I'm currently also blocked by this. |
Using the following jar versions bash-4.3# ls -1 repository-gcs/ |
Increasing
|
This commit updates the google-api-client library to version 1.23. Closes elastic#26636
This commit updates the google-api-client library to version 1.23.0. Related to #26636
This commit updates the google-api-client library to version 1.23.0. Related to #26636
This commit updates the google-api-client library to version 1.23.0. Related to #26636
This commit updates the google-api-client library to version 1.23.0. Related to #26636
Thanks @bw2 and @hoffoo for your feedback. A new version (1.23.0) of google-http-client has been released in October 2017. I updated the versions used in the At that stage, I suggest to close this issue for now and to wait for more tests and feedback on plugins that use the new version of google-http-java-client. This will be released in Elasticsearch 6.0.1 (and potentially in 5.6.5 if this version is released). |
Thanks @tlrx |
Elasticsearch version (
bin/elasticsearch --version
): 5.5.1Plugins installed: [repository-gcs discovery-gce]
JVM version (
java -version
): 1.8.0_131OS version (
uname -a
if on a Unix-like system): Linux XXX 4.10.0-27-generic #30~16.04.2-Ubuntu SMP Thu Jun 29 16:07:46 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxDescription of the problem including expected versus actual behavior:
Creating a snapshot fails on certain shards. Retrying a new snapshot works. For me it seems to fail on about 10% of shards (testing with 51 shards, 4 failed last test, 2 when I retried, finally 0 on the third try)
The exception is
IndexShardSnapshotFailedException[BlobStoreException[Failed to check if blob [__79.part4] exists]; nested: SocketTimeoutException[Read timed out];]; nested: BlobStoreException[Failed to check if blob [__79.part4] exists]; nested: SocketTimeoutException[Read timed out];
This is using gcs coldstorage.
I see that there are further options i can give the plugin, mainly http.connect_timeout and http.read_timeout, but im not sure if they are relevant for the exception below:
java.io.IOException: insufficient data written
I wouldn't mind this failing if I could detect it and retry. Could I do this by deleting the snapshot and recreating it? From what I understand the successfully backed up shards will not be deleted if I did this?
Steps to reproduce:
{"gcs":{"type":"gcs","settings":{"bucket":"XXXX","compress":"true"}}}
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: