How to skip errors on snapshots

I was backing up the Snapshot data through NFS, but the NFS connection was cut off, so I received an error as below

curl -H 'content-type: application/JSON' -XPUT "http://localhost:39023/_snapshot/fs_snapshot/$TARGET_LOG?pretty=true&wait_for_completion=false" -d '{
"indices": "'"$TARGET_LOG"'",
"compress": true,
"ignore_unavailable": true,
"include_global_state": false
}'

{
  "snapshot" : {
    "snapshot" : "click_log_20220412",
    "uuid" : "eJOTYNW0123449B7uzBA",
    "version_id" : 7040099,
    "version" : "7.4.0",
    "indices" : [
      "click_log_20220412"
    ],
    "include_global_state" : false,
    "state" : "FAILED",
    "reason" : "Snapshot was aborted by deletion",
    "start_time" : "2022-04-12T23:57:41.647Z",
    "start_time_in_millis" : 1649807861647,
    "end_time" : "2022-04-13T00:15:02.015Z",
    "end_time_in_millis" : 1649808902015,
    "duration_in_millis" : 1040368,
    "failures" : [
      {
        "index" : "click_log_20220412",
        "index_uuid" : "click_log_20220412",
        "shard_id" : 0,
        "reason" : "aborted by snapshot deletion",
        "node_id" : "bdos233Svp1231qlIdw",
        "status" : "INTERNAL_SERVER_ERROR"
      }
    ],
    "shards" : {
      "total" : 1,
      "failed" : 1,
      "successful" : 0
    }
  }
}

So . Elasticsearch command (other indexs insert, select) via CURL did not work

It didn't work until the nfs-server was restarted

How to skip errors on snapshots?

Regards.

In all my snapshots, when it fails the operation is terminated.
I believe this is a way to ensure the integrity of the snapshot.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.