Description
Elasticsearch version (5.6.11
):
Plugins installed: [repository-s3]
JVM version (jdk1.8.0_77
):
OS version (uname -a
3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux):
Description of the problem including expected versus actual behavior:
Am taking snapshots of indices on Minio server which are taken in a bucket , The successive snapshots of the same indices complete successfully when taken at the bucket root level , but if I register a new repository with a base_path to take snapshots under sub directory the first snapshot gets created successfully but the successive snapshots fail with the FileAlreadyExistsException.
Provide logs (if relevant):
Parent root level bucket snapshot repository
curl -XGET "esi1rvmm03-inc.tw-test.net:9200/_snapshot/intc_minio_repository/_all?pretty"
{
"snapshots" : [
{
"snapshot" : "usg_report_month_2018_09_snapshot",
"uuid" : "b1cXPStzSA245j6rNABL8g",
"version_id" : 5061199,
"version" : "5.6.11",
"indices" : [
"usg_report_month_2018_09"
],
"state" : "SUCCESS",
"start_time" : "2019-04-15T01:57:54.293Z",
"start_time_in_millis" : 1555293474293,
"end_time" : "2019-04-15T01:57:57.365Z",
"end_time_in_millis" : 1555293477365,
"duration_in_millis" : 3072,
"failures" : [ ],
"shards" : {
"total" : 1,
"failed" : 0,
"successful" : 1
}
},
{
"snapshot" : "snapshot_1",
"uuid" : "EsSYscL_REK7KVORsYrWuQ",
"version_id" : 5061199,
"version" : "5.6.11",
"indices" : [
"doclocker"
],
"state" : "SUCCESS",
"start_time" : "2019-05-02T22:35:02.206Z",
"start_time_in_millis" : 1556836502206,
"end_time" : "2019-05-02T22:35:13.609Z",
"end_time_in_millis" : 1556836513609,
"duration_in_millis" : 11403,
"failures" : [ ],
"shards" : {
"total" : 5,
"failed" : 0,
"successful" : 5
}
},
{
"snapshot" : "snapshot_2",
"uuid" : "vWpuP64ET5KBGuWJ4PmP2w",
"version_id" : 5061199,
"version" : "5.6.11",
"indices" : [
"doclocker"
],
"state" : "SUCCESS",
"start_time" : "2019-05-02T22:39:10.484Z",
"start_time_in_millis" : 1556836750484,
"end_time" : "2019-05-02T22:39:11.230Z",
"end_time_in_millis" : 1556836751230,
"duration_in_millis" : 746,
"failures" : [ ],
"shards" : {
"total" : 5,
"failed" : 0,
"successful" : 5
}
Nested directory snapshot repository
curl -XGET "esi1rvmm03-inc.tw-test.net:9200/_snapshot/intc_minio_repository_doclocker/_all?pretty"
{
"snapshots" : [
{
"snapshot" : "snapshot_1",
"uuid" : "c_VRGCCdSSKLr-i0PTXLZg",
"version_id" : 5061199,
"version" : "5.6.11",
"indices" : [
"doclocker"
],
"state" : "SUCCESS",
"start_time" : "2019-05-03T19:33:20.166Z",
"start_time_in_millis" : 1556912000166,
"end_time" : "2019-05-03T19:33:28.478Z",
"end_time_in_millis" : 1556912008478,
"duration_in_millis" : 8312,
"failures" : [ ],
"shards" : {
"total" : 5,
"failed" : 0,
"successful" : 5
}
},
{
"snapshot" : "snapshot_2",
"uuid" : "wQD5j389QK2nHMoNKDCIwA",
"version_id" : 5061199,
"version" : "5.6.11",
"indices" : [
"doclocker"
],
"state" : "PARTIAL",
"start_time" : "2019-05-03T19:35:59.364Z",
"start_time_in_millis" : 1556912159364,
"end_time" : "2019-05-03T19:35:59.627Z",
"end_time_in_millis" : 1556912159627,
"duration_in_millis" : 263,
"failures" : [
{
"index" : "doclocker",
"index_uuid" : "doclocker",
"shard_id" : 0,
"reason" : "IndexShardSnapshotFailedException[Failed to perform snapshot (index files)]; nested: FileAlreadyExistsException[blob [__0] already exists, cannot overwrite]; ",
"node_id" : "9XnkBOa5Q3mUiHp1WvY5hQ",
"status" : "INTERNAL_SERVER_ERROR"
},
{
"index" : "doclocker",
"index_uuid" : "doclocker",
"shard_id" : 2,
"reason" : "IndexShardSnapshotFailedException[Failed to perform snapshot (index files)]; nested: FileAlreadyExistsException[blob [__0] already exists, cannot overwrite]; ",
"node_id" : "cw3A2lK5SAOw1qQ2CY3sTw",
"status" : "INTERNAL_SERVER_ERROR"
},
{
"index" : "doclocker",
"index_uuid" : "doclocker",
"shard_id" : 4,
"reason" : "IndexShardSnapshotFailedException[Failed to perform snapshot (index files)]; nested: FileAlreadyExistsException[blob [__0] already exists, cannot overwrite]; ",
"node_id" : "cw3A2lK5SAOw1qQ2CY3sTw",
"status" : "INTERNAL_SERVER_ERROR"
},
{
"index" : "doclocker",
"index_uuid" : "doclocker",
"shard_id" : 1,
"reason" : "IndexShardSnapshotFailedException[Failed to perform snapshot (index files)]; nested: FileAlreadyExistsException[blob [__0] already exists, cannot overwrite]; ",
"node_id" : "9XnkBOa5Q3mUiHp1WvY5hQ",
"status" : "INTERNAL_SERVER_ERROR"
},
{
"index" : "doclocker",
"index_uuid" : "doclocker",
"shard_id" : 3,
"reason" : "IndexShardSnapshotFailedException[Failed to perform snapshot (index files)]; nested: FileAlreadyExistsException[blob [__0] already exists, cannot overwrite]; ",
"node_id" : "9XnkBOa5Q3mUiHp1WvY5hQ",
"status" : "INTERNAL_SERVER_ERROR"
}
],
"shards" : {
"total" : 5,
"failed" : 5,
"successful" : 0
}
}