Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-287

workaround bad REST responses from bucket statistics

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Cluster version 1.8.1 may send back bytes in a decimal format (i.e. 1000.0 instead of 1000). We can work around this at the client by turning it into an integer.

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

        Activity

        Hide
        saakshi.manocha Saakshi Manocha added a comment - - edited

        @Saran:
        Please see the change done for this issue at : https://github.com/saakshimanocha/couchbase-net-client/commit/24930aab58f574009cb842bfd267b21d992fc4a2

        I have committed the changes in my forked repository https://github.com/saakshimanocha/couchbase-net-client/
        Please use the Couchbase-net-client code from here and use it in the customer application. If it works fine for you, I will commit the changes in main repository.

        Change done:
        Changed data types from long to double for Swap_total, MemoryFree and MemoryTotal. This will solve the problem for 1.8.1 and later builds.
        Converting to Int will not help as it cannot parse the trailing decimal because value is too large for int.

        Show
        saakshi.manocha Saakshi Manocha added a comment - - edited @Saran: Please see the change done for this issue at : https://github.com/saakshimanocha/couchbase-net-client/commit/24930aab58f574009cb842bfd267b21d992fc4a2 I have committed the changes in my forked repository https://github.com/saakshimanocha/couchbase-net-client/ Please use the Couchbase-net-client code from here and use it in the customer application. If it works fine for you, I will commit the changes in main repository. Change done: Changed data types from long to double for Swap_total, MemoryFree and MemoryTotal. This will solve the problem for 1.8.1 and later builds. Converting to Int will not help as it cannot parse the trailing decimal because value is too large for int.
        Hide
        saakshi.manocha Saakshi Manocha added a comment -

        @Saran: Any update on this?

        Show
        saakshi.manocha Saakshi Manocha added a comment - @Saran: Any update on this?

          People

          • Assignee:
            skumar Saran Kumar (Inactive)
            Reporter:
            saakshi.manocha Saakshi Manocha
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes