Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-4547

Getting XDCR stats uses wrong URI endpoint

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Server 5.5/Vulcan, Server 5.1.0, Alice
    • None
    • xdcr
    • None

    Description

      The URI given to use to get specific stats is the following :

      GET /pools/default/buckets/@xdcr-[source_bucket]/stats/[destination_endpoint]
      

      This doesn't work to retrieve specific stats as it returns a "Requested resource not found." error.

      The correct endpoint is the following:

      GET /pools/default/buckets/[source_bucket]/stats/[destination_endpoint]
      

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          thomas.dotters Thomas Dotters created issue -
          tony.hillman Tony Hillman made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          tony.hillman Tony Hillman made changes -
          Actual Start 2018-12-11 08:11 (issue has been started)
          tony.hillman Tony Hillman made changes -
          Sprint DOC-S31-Dec07 [ 630 ]
          tony.hillman Tony Hillman made changes -
          Rank Ranked higher
          amarantha.kulkarni Amarantha Kulkarni (Inactive) made changes -
          Sprint DOC-S31-Dec07 [ 630 ] DOC-S31-Dec07, DOC-S32-Dec21 [ 630, 631 ]
          amarantha.kulkarni Amarantha Kulkarni (Inactive) made changes -
          Planned End 2018-12-10 06:00 (started sprint)
          Planned Start 2018-12-10 06:00 (started sprint)
          tony.hillman Tony Hillman added a comment -

          I get the same thing under 5.5.1:

          $ curl -X GET http://10.143.181.102:8091/pools/default/buckets/@xdcr-beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password

          Requested resource not found.

          $ curl -X GET http://10.143.181.102:8091/pools/default/buckets/beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password

          {"samplesCount":60,"isPersistent":true,"lastTStamp":0,"interval":1000,"timestamp":[],"nodeStats":\{"10.143.181.102:8091":[]}

          }

          tony.hillman Tony Hillman added a comment - I get the same thing under 5.5.1: $ curl -X GET http://10.143.181.102:8091/pools/default/buckets/@xdcr-beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password Requested resource not found. $ curl -X GET http://10.143.181.102:8091/pools/default/buckets/beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password {"samplesCount":60,"isPersistent":true,"lastTStamp":0,"interval":1000,"timestamp":[],"nodeStats":\{"10.143.181.102:8091":[]} }
          tony.hillman Tony Hillman added a comment - PR for 5.5 at  https://github.com/couchbase/docs-server/pull/215
          amarantha.kulkarni Amarantha Kulkarni (Inactive) made changes -
          Affects Version/s Alice [ 15118 ]
          Affects Version/s 6.0 [ 15900 ]
          tony.hillman Tony Hillman added a comment -

          Same problem verified with 5.1:

          $ curl -X GET http://10.143.177.102:8091/pools/default/buckets/beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password

          {"samplesCount":60,"isPersistent":true,"lastTStamp":0,"interval":1000,"timestamp":[],"nodeStats":{"10.143.177.102:8091":[]}}

          $ curl -X GET http://10.143.177.102:8091/pools/default/buckets/@xdcr-beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password

          Requested resource not found.

          tony.hillman Tony Hillman added a comment - Same problem verified with 5.1: $ curl -X GET http://10.143.177.102:8091/pools/default/buckets/beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password {"samplesCount":60,"isPersistent":true,"lastTStamp":0,"interval":1000,"timestamp":[],"nodeStats":{"10.143.177.102:8091":[]}} $ curl -X GET http://10.143.177.102:8091/pools/default/buckets/@xdcr-beer-sample/stats/replications%2Facf28718d62bdd1686974ca696031c01%2Ftravel-sample%2Fbeer-sample%2Fdocs_written -u Administrator:password Requested resource not found.
          tony.hillman Tony Hillman added a comment - - edited PR for 5.1 at  https://github.com/couchbase/docs-server/pull/216
          tony.hillman Tony Hillman added a comment -

          Merged for 5.1 and 5.5.

          tony.hillman Tony Hillman added a comment - Merged for 5.1 and 5.5.
          tony.hillman Tony Hillman added a comment -

          6.0 PR submitted for pubs review at https://github.com/couchbase/docs-server/pull/217

          tony.hillman Tony Hillman added a comment - 6.0 PR submitted for pubs review at  https://github.com/couchbase/docs-server/pull/217
          tony.hillman Tony Hillman added a comment -

          I will open a separate ticket for testing against pre 5.1 servers.

          tony.hillman Tony Hillman added a comment - I will open a separate ticket for testing against pre 5.1 servers.
          tony.hillman Tony Hillman made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          tony.hillman Tony Hillman made changes -
          Actual End 2018-12-12 05:48 (issue has been resolved)
          brett19 Brett Lawson made changes -
          Story Points 1

          People

            tony.hillman Tony Hillman
            thomas.dotters Thomas Dotters
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty