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

Oracle TableSchemaBuilder provides wrong column name in error message

XMLWordPrintable

    • False
    • None
    • False

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      2.6

      What is the connector configuration?

      Oracle RAC

      What is the captured database version and mode of deployment?

      Oracle RAC

      What behavior do you expect?

      The log message should yield:
      ```

      Failed to properly convert data value for X.Y.Z.MYCOL' of type DATE"

      ```

      What behavior do you see?

      Log message references an arbitrary column name that is not even captured (indexed form the table schema, not captured columns)

      Do you see the same behaviour using the latest released Debezium version?

      yes

      Do you have the connector logs, ideally from start till finish?

       

      ```

      {"timestamp":"2024-09-06T06:42:41.468+05:30","sequence":15120,"loggerClassName":"org.slf4j.impl.Slf4jLogger","loggerName":"io.debezium.relational.TableSchemaBuilder","level":"ERROR","message":"Failed to properly convert data value for 'X.Y.Z.MYCOL' of type DATE","threadName":"pool-12-thread-1","threadId":49,"mdc":\{"dbz.taskId":"0","dbz.databaseName":"X","dbz.connectorName":"server1","dbz.connectorType":"Oracle","dbz.connectorContext":"snapshot"},"ndc":"","hostName":"i02259l2cpd017","processName":"io.debezium.server.Main","processId":1431685,"exception":{"refId":1,"exceptionType":"io.debezium.DebeziumException","message":"Couldn't convert value for column MYCOL","frames":[{"class":"io.debezium.connector.oracle.OracleValueConverters","method":"convertBinary","line":356},\{"class":"io.debezium.connector.oracle.OracleValueConverters","method":"lambda$converter$1","line":221},\{"class":"io.debezium.relational.TableSchemaBuilder","method":"lambda$createValueGenerator$5","line":281},\{"class":"io.debezium.relational.TableSchema","method":"valueFromColumnData","line":141},\{"class":"io.debezium.relational.RelationalChangeRecordEmitter","method":"emitReadRecord","line":87},\{"class":"io.debezium.relational.RelationalChangeRecordEmitter","method":"emitChangeRecords","line":50},\{"class":"io.debezium.pipeline.EventDispatcher","method":"dispatchSnapshotEvent","line":214},\{"class":"io.debezium.relational.RelationalSnapshotChangeEventSource","method":"doCreateDataEventsForTable","line":580},\{"class":"io.debezium.relational.RelationalSnapshotChangeEventSource","method":"lambda$createDataEventsForTableCallable$6","line":520},\{"class":"java.util.concurrent.FutureTask","method":"run","line":264},\{"class":"java.util.concurrent.Executors$RunnableAdapter","method":"call","line":539},\{"class":"java.util.concurrent.FutureTask","method":"run","line":264},\{"class":"java.util.concurrent.ThreadPoolExecutor","method":"runWorker","line":1136},\{"class":"java.util.concurrent.ThreadPoolExecutor$Worker","method":"run","line":635},\{"class":"java.lang.Thread","method":"run","line":840}],"causedBy":{"exception":{"refId":2,"exceptionType":"java.sql.SQLException","message":"ORA-01555: snapshot too old: rollback segment number  with name \"\" too small\nORA-22924: snapshot too old\n","frames":[{"class":"oracle.jdbc.driver.T4CTTIoer11","method":"processError","line":628},\{"class":"oracle.jdbc.driver.T4CTTIoer11","method":"processError","line":557},\{"class":"oracle.jdbc.driver.T4CTTIoer11","method":"processError","line":552},\{"class":"oracle.jdbc.driver.T4C8TTILob","method":"processError","line":914},\{"class":"oracle.jdbc.driver.T4CTTIfun","method":"receive","line":726},\{"class":"oracle.jdbc.driver.T4CTTIfun","method":"doRPC","line":291},\{"class":"oracle.jdbc.driver.T4C8TTILob","method":"read","line":171},\{"class":"oracle.jdbc.driver.T4CConnection","method":"getBytes","line":4475},\{"class":"oracle.jdbc.driver.OracleBlob","method":"getBytes","line":445},\{"class":"oracle.jdbc.driver.OracleBlob","method":"getBytes","line":320},\{"class":"oracle.sql.BLOB","method":"getBytes","line":340},\{"class":"io.debezium.connector.oracle.OracleValueConverters","method":"convertBinary","line":339},\{"class":"io.debezium.connector.oracle.OracleValueConverters","method":"lambda$converter$1","line":221},\{"class":"io.debezium.relational.TableSchemaBuilder","method":"lambda$createValueGenerator$5","line":281},\{"class":"io.debezium.relational.TableSchema","method":"valueFromColumnData","line":141},\{"class":"io.debezium.relational.RelationalChangeRecordEmitter","method":"emitReadRecord","line":87},\{"class":"io.debezium.relational.RelationalChangeRecordEmitter","method":"emitChangeRecords","line":50},\{"class":"io.debezium.pipeline.EventDispatcher","method":"dispatchSnapshotEvent","line":214},\{"class":"io.debezium.relational.RelationalSnapshotChangeEventSource","method":"doCreateDataEventsForTable","line":580},\{"class":"io.debezium.relational.RelationalSnapshotChangeEventSource","method":"lambda$createDataEventsForTableCallable$6","line":520},\{"class":"java.util.concurrent.FutureTask","method":"run","line":264},\{"class":"java.util.concurrent.Executors$RunnableAdapter","method":"call","line":539},\{"class":"java.util.concurrent.FutureTask","method":"run","line":264},\{"class":"java.util.concurrent.ThreadPoolExecutor","method":"runWorker","line":1136},\{"class":"java.util.concurrent.ThreadPoolExecutor$Worker","method":"run","line":635},\{"class":"java.lang.Thread","method":"run","line":840}]}}}}```

      How to reproduce the issue using our tutorial deployment?

      <Your answer>

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      <Your answer>

      Implementation ideas (optional)

      <Your answer>

            Unassigned Unassigned
            zalmane Oren Elias (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: