wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[Bug]: The Rollback behaviour is not working in latest Kafka Inbound Endpoint v1.2.2 #3541

Open anupama-pathirage opened 3 months ago

anupama-pathirage commented 3 months ago

Description

Moving the issue from https://github.com/wso2-extensions/esb-inbound-kafka/issues/73

Description:

The behaviour of Kafka Inbound endpoint has been changed between the version v1.0.12 and the v1.2.2 versions. The rollback behaviour is not working when a transaction failed even though we disable the auto commit and set the property to true.

Suggested Labels:

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Steps to reproduce:

  1. Run Kafka server and confluent server(kafka_2.12-3.7.0 and confluent version 7.6.0)
  2. Create an inbound endpoint and sequence
  3. Set the auto commit property to false to disable the auto commit
  4. Set the roll back property to true when the transaction failed(added HTTP code manually instead of calling backend endpoint)
  5. Deploy the CAR file and test the behaviour

Current behaviour:

The messages are still continuing and not rolling back when the transaction failed(Except for 200 code)

Expected behaviour:

The messages should roll back when we set the roll back property to true when the transaction failed(Except for 200 code)

Related Issues:

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response