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

Key being used as value in pubsub batch handler

    XMLWordPrintable

    Details

      Description

      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().

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: