Skip to content

Bug in TransactionPayloadIntegrationTest in mysql-binlog-connector-java repo #1539

@adelajaworowska

Description

@adelajaworowska

When I am running TransactionPayloadIntegrationTest using:
MYSQL_VERSION=8.0 mvn test -Dtest=TransactionPayloadIntegrationTest command
it fails with message:
Should have captured TRANSACTION_PAYLOAD event expected [true] but found [false]

I added custom event listener to the test, that captures uncompressed TRANSACTION_PAYLOAD events and we can perform some validation on it.

Alternative way would be modifyingonEvent() method from CapturingEventListener to store also an original event of TRANSACTION_PAYLOAD type. But this would causes some kind of a duplication (TRANSACTION_PAYLOAD event and all uncompressed events)

I created a PR with the fix: PR 20
Please let me know WDYT.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions