Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1580

FIT: Increment/Decrement Operations in binary are creating a document with a value of 0 instead of throwing a "document not found" exception, when initial value is not supplied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • None
    • 0

    Description

      Failing in server versions: 6.6-release, 7.1-release, 7.1-stable, 7.2-stable, 7.6-stable

      FIT tests 

      decrementThrowsDocumentNotFoundWhenInitialValueNotSupplied, incrementThrowsDocumentNotFoundWhenInitialValueNotSupplied

      are failing with incorrect exception in result. It is expecting to get DocumentNotFoundException when incrementing/decrementing a binary document without setting its initial value, instead a document is getting created with value 0. 

      Driver logs: 

      INFO  nsactions.util.SharedTestState - Id of document is: saurabh112:37:51.544 [t-thread-1] INFO  ase.client.util.SdkCommandUtil - Waiting for a result from the performer after sending return_result: truecollection_command {  collection {    bucket_name: "default"    scope_name: "_default"    collection_name: "_default"  }  binary {    decrement {      location {        specific {          collection {            bucket_name: "default"            scope_name: "_default"            collection_name: "_default"          }          id: "saurabh1"        }      }    }  }}
      12:37:53.526 [ cb-events] WARN           com.couchbase.tracing - [com.couchbase.tracing][OverThresholdRequestsRecordedEvent][10s] Requests over Threshold found: {"kv":{"top_requests":[{"operation_name":"remove","last_dispatch_duration_us":579083,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":579083,"total_server_duration_us":15,"operation_id":"0x438","timeout_ms":30000,"last_server_duration_us":15,"total_duration_us":584234},{"operation_name":"remove","last_dispatch_duration_us":579024,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":579024,"total_server_duration_us":6,"operation_id":"0x437","timeout_ms":30000,"last_server_duration_us":6,"total_duration_us":584223},{"operation_name":"remove","last_dispatch_duration_us":579176,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":579176,"total_server_duration_us":11,"operation_id":"0x43e","timeout_ms":30000,"last_server_duration_us":11,"total_duration_us":584206},{"operation_name":"remove","last_dispatch_duration_us":579147,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":579147,"total_server_duration_us":11,"operation_id":"0x43d","timeout_ms":30000,"last_server_duration_us":11,"total_duration_us":584188},{"operation_name":"remove","last_dispatch_duration_us":579108,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":579108,"total_server_duration_us":15,"operation_id":"0x43c","timeout_ms":30000,"last_server_duration_us":15,"total_duration_us":584179},{"operation_name":"remove","last_dispatch_duration_us":578992,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":578992,"total_server_duration_us":11,"operation_id":"0x436","timeout_ms":30000,"last_server_duration_us":11,"total_duration_us":584158},{"operation_name":"remove","last_dispatch_duration_us":578890,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":578890,"total_server_duration_us":15,"operation_id":"0x435","timeout_ms":30000,"last_server_duration_us":15,"total_duration_us":584126},{"operation_name":"remove","last_dispatch_duration_us":578861,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":578861,"total_server_duration_us":11,"operation_id":"0x433","timeout_ms":30000,"last_server_duration_us":11,"total_duration_us":584025},{"operation_name":"remove","last_dispatch_duration_us":578829,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":578829,"total_server_duration_us":19,"operation_id":"0x434","timeout_ms":30000,"last_server_duration_us":19,"total_duration_us":583987},{"operation_name":"remove","last_dispatch_duration_us":578780,"last_remote_socket":"172.23.111.130:11210","last_local_id":"F98F12C300000001/00000000A7614C31","last_local_socket":"172.16.1.84:61228","total_dispatch_duration_us":578780,"total_server_duration_us":15,"operation_id":"0x432","timeout_ms":30000,"last_server_duration_us":15,"total_duration_us":583955}],"total_count":642}}12:37:54.478 [t-thread-1] INFO  ase.client.util.SdkCommandUtil - Got 1 results from performer12:37:54.481 [t-thread-1] INFO  client.util.ExceptionValidator - Unexpected result on counter_result {  cas: 1710918472050802688  mutation_token {    partition_id: 754    partition_uuid: 86308772781047    sequence_number: 1    bucket_name: "default"  }}
      12:37:54.511 [      main] INFO  hbase.client.util.TestListener - Finished test api: DEFAULT with result FAILED
      org.opentest4j.AssertionFailedError: Was expecting an exception ==> Expected :trueActual   :false<Click to see difference>
       
      	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:211)	at com.couchbase.client.util.ExceptionValidator.assertCouchbaseExceptionResult(ExceptionValidator.java:114)	at com.couchbase.client.util.ExceptionValidator.assertDocumentNotFound(ExceptionValidator.java:146)	at com.couchbase.client.kv.BinaryTest.lambda$decrementThrowsDocumentNotFoundWhenInitialValueNotSupplied$9(BinaryTest.java:162)	at com.couchbase.client.kv.BinaryTest.lambda$iterate$0(BinaryTest.java:49)	at org.junit.jupiter.api.AssertTimeoutPreemptively.lambda$assertTimeoutPreemptively$0(AssertTimeoutPreemptively.java:48)	at org.junit.jupiter.api.AssertTimeoutPreemptively.lambda$submitTask$3(AssertTimeoutPreemptively.java:95)	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)	at java.base/java.lang.Thread.run(Thread.java:1583) 

      Performer logs: 

       ================ Test file : Start ================ 
      [2024-03-20 12:37:51,438] [root] [INFO] ================ java.util.stream.Stream com.couchbase.client.kv.BinaryTest.decrementThrowsDocumentNotFoundWhenInitialValueNotSupplied():decrementThrowsDocumentNotFoundWhenInitialValueNotSupplied() : testStart ================ 
      [2024-03-20 12:37:51,545] [root] [INFO] Run called
      [2024-03-20 12:37:51,545] [executors.workload_executor_builder] [INFO] Using multi-thread executor
      [2024-03-20 12:37:51,545] [executors.multi_thread_executor] [INFO] There are 1 workloads
      [2024-03-20 12:37:51,546] [executors.request_executor] [INFO] Batch size is 1
      [2024-03-20 12:37:51,546] [executors.multi_thread_executor] [INFO] Started thread
      [2024-03-20 12:37:54,431] [executors.multi_thread_executor] [INFO] Thread 6202716160 has finished its workloads
      [2024-03-20 12:37:54,432] [streaming.stream_owner] [INFO] Waiting for streams from run 318c9452-c7f5-443e-b6c9-33e48f8ce110
      [2024-03-20 12:37:54,432] [streaming.stream_owner] [INFO] All streams from run 318c9452-c7f5-443e-b6c9-33e48f8ce110 have finished
      [2024-03-20 12:37:54,432] [executors.multi_thread_executor] [INFO] Workloads complete
      [2024-03-20 12:37:54,432] [root] [INFO] Sent all the results for this run
      [2024-03-20 12:37:54,433] [root] [INFO] Run finished
      [2024-03-20 12:37:54,517] [root] [INFO] ================ java.util.stream.Stream com.couchbase.client.kv.BinaryTest.decrementThrowsDocumentNotFoundWhenInitialValueNotSupplied():decrementThrowsDocumentNotFoundWhenInitialValueNotSupplied() : testEnd ================ 
      [2024-03-20 12:37:54,521] [root] [INFO] ================ Test file : End ================  

      Attachments

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              saurabh.mishra Saurabh Mishra
              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