Uploaded image for project: 'Distributed Transactions Java'
  1. Distributed Transactions Java
  2. TXNJ-430

3.2.0-SNAPSHOT incompatible with Txn Libraries 1.1.8 and 1.2.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Yes

    Description

      Txn Libraries 1.1.8 and 1.2.0-SNAPSHOT are incompatible with 3.2.0-SNAPSHOT of Java Core library. Hitting this issue :

      Issue Originating from:

      transactionsFactory.run((ctx) -> {}

       

      Error Message:

      Exception in thread "grpc-default-executor-17" java.lang.NoSuchMethodError: com.couchbase.client.core.cnc.RequestSpan.setAttribute(Ljava/lang/String;Ljava/lang/String;)VException in thread "grpc-default-executor-17" java.lang.NoSuchMethodError: com.couchbase.client.core.cnc.RequestSpan.setAttribute(Ljava/lang/String;Ljava/lang/String;)V at com.couchbase.transactions.support.SpanWrapper.attribute(SpanWrapper.java:58) at com.couchbase.transactions.support.SpanWrapperUtil.basic(SpanWrapperUtil.java:31) at com.couchbase.transactions.TransactionContext.<init>(TransactionContext.java:73) at com.couchbase.transactions.TransactionsReactive.lambda$runBlocking$43(TransactionsReactive.java:584) at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:44) at reactor.core.publisher.Mono.subscribe(Mono.java:4150) at reactor.core.publisher.Mono.block(Mono.java:1702) at com.couchbase.transactions.Transactions.run(Transactions.java:220) at com.couchbase.twoway.TwoWayTransaction.run(TwoWayTransaction.java:188) at com.couchbase.twoway.TwoWayTransaction.run(TwoWayTransaction.java:142) at com.couchbase.PerformerTransactionService.transactionCreate(PerformerTransactionService.java:358) at com.couchbase.grpc.protocol.PerformerTransactionServiceGrpc$MethodHandlers.invoke(PerformerTransactionServiceGrpc.java:1291) at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182) at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:331)

      Attachments

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

        Activity

          graham.pople Graham Pople added a comment -

          Hi Praneeth Bokka, thank you for raising.  These are the kinds of bugs I'm hoping to find from testing the new SDKs with the transactions libraries - good to see the system works.

          This is a known one, raised in TXNJ-426, and it's a major reason why I've asked for this type of testing to start. 

          I've fixed TXNJ-426 in 1.2.0 but the change is not yet reviewed so it's not in the snapshot currently.  I've put a warning on the release notes that 1.1.8 requires a specific version of the Java SDK (3.1.5).

          graham.pople Graham Pople added a comment - Hi Praneeth Bokka , thank you for raising.  These are the kinds of bugs I'm hoping to find from testing the new SDKs with the transactions libraries - good to see the system works. This is a known one, raised in  TXNJ-426 , and it's a major reason why I've asked for this type of testing to start.  I've fixed TXNJ-426 in 1.2.0 but the change is not yet reviewed so it's not in the snapshot currently.  I've put a warning on the release notes that 1.1.8 requires a specific version of the Java SDK (3.1.5).

          People

            graham.pople Graham Pople
            praneeth.bokka Praneeth Bokka
            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