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

CommitThroughput metrics can raise division by zero error

XMLWordPrintable

      io.debezium.connector.oracle.logminer.TransactionalBufferMetrics.getCommitThroughput() tries to guard against division by zero. The problem is that the zero check is done against full precision duration while the caluclation is then converted to millis. This mean that sub-millis durations will get rounded to 0 and divison by zero can be raised.

            ccranfor@redhat.com Chris Cranford
            jpechane Jiri Pechanec
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: