determination elasticsearch recovery failure









up vote
0
down vote

favorite












I was wondering how to determine the failure of a snapshot recovery.



From the Elasticsearch documentation, cat-recovery can be used to determine if an index or indices are being recovered from some source.



Per recovering shard, the stage, one of init, index, start, translog, finalize, done , tells how far along in the process recovery it’s in.



In the case that for whatever reason recovery fails, would the stage come to rest at whatever stage failure occurred on? Or will stage of the failed shard transition to “done” and we can then determine failure of the recovery based on the color coded health status of said shard?



Perhaps there’s a “failure” value that I’ve missed somewhere?



Thanks!










share|improve this question

























    up vote
    0
    down vote

    favorite












    I was wondering how to determine the failure of a snapshot recovery.



    From the Elasticsearch documentation, cat-recovery can be used to determine if an index or indices are being recovered from some source.



    Per recovering shard, the stage, one of init, index, start, translog, finalize, done , tells how far along in the process recovery it’s in.



    In the case that for whatever reason recovery fails, would the stage come to rest at whatever stage failure occurred on? Or will stage of the failed shard transition to “done” and we can then determine failure of the recovery based on the color coded health status of said shard?



    Perhaps there’s a “failure” value that I’ve missed somewhere?



    Thanks!










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I was wondering how to determine the failure of a snapshot recovery.



      From the Elasticsearch documentation, cat-recovery can be used to determine if an index or indices are being recovered from some source.



      Per recovering shard, the stage, one of init, index, start, translog, finalize, done , tells how far along in the process recovery it’s in.



      In the case that for whatever reason recovery fails, would the stage come to rest at whatever stage failure occurred on? Or will stage of the failed shard transition to “done” and we can then determine failure of the recovery based on the color coded health status of said shard?



      Perhaps there’s a “failure” value that I’ve missed somewhere?



      Thanks!










      share|improve this question













      I was wondering how to determine the failure of a snapshot recovery.



      From the Elasticsearch documentation, cat-recovery can be used to determine if an index or indices are being recovered from some source.



      Per recovering shard, the stage, one of init, index, start, translog, finalize, done , tells how far along in the process recovery it’s in.



      In the case that for whatever reason recovery fails, would the stage come to rest at whatever stage failure occurred on? Or will stage of the failed shard transition to “done” and we can then determine failure of the recovery based on the color coded health status of said shard?



      Perhaps there’s a “failure” value that I’ve missed somewhere?



      Thanks!







      elasticsearch






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 23:30









      maoshouse

      11




      11






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          _cat/recovery is not for snapshot recovery statue. for snapshot restore failure you can get the statue as below:



          curl XGET "127.0.0.1:9200/_snapshot/my_backup/snapshot_1"



          my_backup




          is the name of repository and




          snapshot_1




          is the name of snapshot you have created.



          the result have these parameters:




          IN_PROGRESS




          The snapshot is currently running.




          SUCCESS




          The snapshot finished and all shards were stored successfully.




          FAILED




          The snapshot finished with an error and failed to store any data.




          PARTIAL




          The global cluster state was stored, but data of at least one shard wasn’t stored successfully. The failure section in this case should contain more detailed information about shards that were not processed correctly.




          INCOMPATIBLE




          The snapshot was created with an old version of Elasticsearch and therefore is incompatible with the current version of the cluster.






          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234565%2fdetermination-elasticsearch-recovery-failure%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            _cat/recovery is not for snapshot recovery statue. for snapshot restore failure you can get the statue as below:



            curl XGET "127.0.0.1:9200/_snapshot/my_backup/snapshot_1"



            my_backup




            is the name of repository and




            snapshot_1




            is the name of snapshot you have created.



            the result have these parameters:




            IN_PROGRESS




            The snapshot is currently running.




            SUCCESS




            The snapshot finished and all shards were stored successfully.




            FAILED




            The snapshot finished with an error and failed to store any data.




            PARTIAL




            The global cluster state was stored, but data of at least one shard wasn’t stored successfully. The failure section in this case should contain more detailed information about shards that were not processed correctly.




            INCOMPATIBLE




            The snapshot was created with an old version of Elasticsearch and therefore is incompatible with the current version of the cluster.






            share|improve this answer
























              up vote
              0
              down vote













              _cat/recovery is not for snapshot recovery statue. for snapshot restore failure you can get the statue as below:



              curl XGET "127.0.0.1:9200/_snapshot/my_backup/snapshot_1"



              my_backup




              is the name of repository and




              snapshot_1




              is the name of snapshot you have created.



              the result have these parameters:




              IN_PROGRESS




              The snapshot is currently running.




              SUCCESS




              The snapshot finished and all shards were stored successfully.




              FAILED




              The snapshot finished with an error and failed to store any data.




              PARTIAL




              The global cluster state was stored, but data of at least one shard wasn’t stored successfully. The failure section in this case should contain more detailed information about shards that were not processed correctly.




              INCOMPATIBLE




              The snapshot was created with an old version of Elasticsearch and therefore is incompatible with the current version of the cluster.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                _cat/recovery is not for snapshot recovery statue. for snapshot restore failure you can get the statue as below:



                curl XGET "127.0.0.1:9200/_snapshot/my_backup/snapshot_1"



                my_backup




                is the name of repository and




                snapshot_1




                is the name of snapshot you have created.



                the result have these parameters:




                IN_PROGRESS




                The snapshot is currently running.




                SUCCESS




                The snapshot finished and all shards were stored successfully.




                FAILED




                The snapshot finished with an error and failed to store any data.




                PARTIAL




                The global cluster state was stored, but data of at least one shard wasn’t stored successfully. The failure section in this case should contain more detailed information about shards that were not processed correctly.




                INCOMPATIBLE




                The snapshot was created with an old version of Elasticsearch and therefore is incompatible with the current version of the cluster.






                share|improve this answer












                _cat/recovery is not for snapshot recovery statue. for snapshot restore failure you can get the statue as below:



                curl XGET "127.0.0.1:9200/_snapshot/my_backup/snapshot_1"



                my_backup




                is the name of repository and




                snapshot_1




                is the name of snapshot you have created.



                the result have these parameters:




                IN_PROGRESS




                The snapshot is currently running.




                SUCCESS




                The snapshot finished and all shards were stored successfully.




                FAILED




                The snapshot finished with an error and failed to store any data.




                PARTIAL




                The global cluster state was stored, but data of at least one shard wasn’t stored successfully. The failure section in this case should contain more detailed information about shards that were not processed correctly.




                INCOMPATIBLE




                The snapshot was created with an old version of Elasticsearch and therefore is incompatible with the current version of the cluster.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 10 at 7:04









                hamid bayat

                387




                387



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234565%2fdetermination-elasticsearch-recovery-failure%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Use pre created SQLite database for Android project in kotlin

                    Darth Vader #20

                    Ondo