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

Key being used as value in pubsub batch handler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.5.0.Alpha1
    • None
    • debezium-server
    • None
    • False
    • False
    • Undefined

      debezium/debezium-server/debezium-server-pubsub/src/main/java/io/debezium/server/pubsub/PubSubChangeConsumer.java#140

      if (record.value() instanceof String) {                pubsubMessage.setData(ByteString.copyFromUtf8((String) record.value()));            }            else if (record.value() instanceof byte[]) {                pubsubMessage.setData(ByteString.copyFrom((byte[]) record.key()));            }

      data should be set from record.value(), not record.key().

              Unassigned Unassigned
              passkit Nick Murray (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: