Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-4384

OracleClobDataTypeIT shouldNotStreamAnyChangesWhenLobEraseIsDetected may fail randomly

XMLWordPrintable

      org.junit.ComparisonFailure: 
      Expected :true
      Actual   :false
      <Click to see difference>
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at org.fest.assertions.ConstructorInvoker.newInstance(ConstructorInvoker.java:36)
      	at org.fest.assertions.ComparisonFailureFactory.newComparisonFailure(ComparisonFailureFactory.java:60)
      	at org.fest.assertions.ComparisonFailureFactory.comparisonFailure(ComparisonFailureFactory.java:46)
      	at org.fest.assertions.Fail.comparisonFailed(Fail.java:83)
      	at org.fest.assertions.Fail.failIfNotEqual(Fail.java:71)
      	at org.fest.assertions.GenericAssert.isEqualTo(GenericAssert.java:217)
      	at org.fest.assertions.BooleanAssert.isEqualTo(BooleanAssert.java:73)
      	at org.fest.assertions.BooleanAssert.isTrue(BooleanAssert.java:55)
      	at io.debezium.embedded.AbstractConnectorTest.assertNoRecordsToConsume(AbstractConnectorTest.java:830)
      	at io.debezium.connector.oracle.OracleClobDataTypeIT.shouldNotStreamAnyChangesWhenLobEraseIsDetected(OracleClobDataTypeIT.java:1114)
      

      The reason the test fails randomly is that there is a race condition in the test where if the connector thread polls for changes before the assertion fires, there will be a SELECT_LOB_LOCATOR event emitted as an UPDATE for just the PK key. This UPDATE shouldn't be emitted at all and instead should have been discarded since the preceding event was simply the locator event.

              ccranfor@redhat.com Chris Cranford
              ccranfor@redhat.com Chris Cranford
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: