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

Sometimes query data get null value with GetView<xxx>(...) and return false value with StoreJson(Add, id, object)

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 1.3.10, 2.0.3
    • None
    • library
    • Windows 7 professional, Windows 7 ultimate, Windows Server 2008 R2

    Description

      I got this problem sometimes in a day(everyday, in many diffence PCs). I made some load tests with 10k transactions/per time and I found that the failure rate of 2% of the total transaction(null value with GetView and false value with StoreJson) of course the data persisted in storage.
      You could use this reference service to test: http://123.31.10.239:8082/services.svc
      SendRequest("token", "user00", "12345678", "serviceId", "C101", "", byte[0], ref retObj);

      sucess value: 00;f4c0d......
      failed value: 01; or "Ko co gi!"

      I used .Net SDK 2.0.3 in DAL with Shared Connection pattern(singleton with dotNet Remoting), Couchbase Server 3.0.1 CE, 1 data bucket, total 4385 items.
      Server specification:
      + CPU: Intel Xeon E312x 2.Ghz (8 processors)
      + RAM: 16Gb
      + OS: Windows Server 2008 R2 Ent, 64 bit.
      + Hdd: 180Gb

      I attached DAL project with this ticket for more detail, I used a windows service to call DAL via .net Remoting(singleton pattern).

      Hope to get soon your feedback.

      Attachments

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

        Activity

          ntphongnt ntphongnt added a comment -

          I added stack trace the exception in attached file.

          ntphongnt ntphongnt added a comment - I added stack trace the exception in attached file.
          jmorris Jeff Morris added a comment -

          How often does this happen and what are the circumstances? For example, after a period of inactivity? Could you enable logging and try to log it to disk?

          http://docs.couchbase.com/couchbase-sdk-net-1.3/#configuring-logging

          jmorris Jeff Morris added a comment - How often does this happen and what are the circumstances? For example, after a period of inactivity? Could you enable logging and try to log it to disk? http://docs.couchbase.com/couchbase-sdk-net-1.3/#configuring-logging
          ntphongnt ntphongnt added a comment -

          it happened about 2% in total of transaction, but it stucked here from yesterday.

          ntphongnt ntphongnt added a comment - it happened about 2% in total of transaction, but it stucked here from yesterday.
          jmorris Jeff Morris added a comment -

          That's why I am asking the logs because it will give me some understanding about what is happening internally with the client. The exception is generic and just indicates that the client could not find an active node to use to make the view request. I don't why for sure.

          I would wrap that could in a try/catch block however, and if possible recreate the client instance when this happens.

          jmorris Jeff Morris added a comment - That's why I am asking the logs because it will give me some understanding about what is happening internally with the client. The exception is generic and just indicates that the client could not find an active node to use to make the view request. I don't why for sure. I would wrap that could in a try/catch block however, and if possible recreate the client instance when this happens.
          jmorris Jeff Morris added a comment -

          Closing these issues because they are for versions of the SDK that are no longer supported.

          jmorris Jeff Morris added a comment - Closing these issues because they are for versions of the SDK that are no longer supported.

          People

            jmorris Jeff Morris
            ntphongnt ntphongnt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty