Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Conversation

@garyrussell
Copy link
Contributor

No description provided.

else {
this.headerMapper = new SimpleKafkaHeaderMapper();
}
// TODO - add isTransactional() to KafkaTemplate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this first!
Merge there, then fix here and merge as well!

@garyrussell garyrussell changed the title Support transaction initiation in ob gateway Support transaction initiation in ob endpoints Feb 13, 2018
@garyrussell
Copy link
Contributor Author

ping

garyrussell added a commit to garyrussell/spring-cloud-stream-binder-kafka that referenced this pull request Feb 14, 2018
Resolves spring-attic#305

Requires spring-attic/spring-integration-kafka#196

`ProducerConfigurationMessageHandler` overrode `handleMessageInternal` to support
producer-initiated transactions. Now that the superclass extends `ARPMH`, this
method is no longer overridable.

Spring Integration Kafka's `KafkaProducerMessageHandler` now detects a transactional
`KafkaTemplate` and will automatically start a transaction if needed, so there is no
longer any need to override that method.
garyrussell added a commit to garyrussell/spring-cloud-stream-binder-kafka that referenced this pull request Feb 14, 2018
Resolves spring-attic#305

Requires spring-attic/spring-integration-kafka#196

`ProducerConfigurationMessageHandler` overrode `handleMessageInternal` to support
producer-initiated transactions. Now that the superclass extends `ARPMH`, this
method is no longer overridable.

Spring Integration Kafka's `KafkaProducerMessageHandler` now detects a transactional
`KafkaTemplate` and will automatically start a transaction if needed, so there is no
longer any need to override that method.
garyrussell added a commit to garyrussell/spring-cloud-stream-binder-kafka that referenced this pull request Feb 14, 2018
Resolves spring-attic#305

Requires spring-attic/spring-integration-kafka#196

`ProducerConfigurationMessageHandler` overrode `handleMessageInternal` to support
producer-initiated transactions. Now that the superclass extends `ARPMH`, this
method is no longer overridable.

Spring Integration Kafka's `KafkaProducerMessageHandler` now detects a transactional
`KafkaTemplate` and will automatically start a transaction if needed, so there is no
longer any need to override that method.

No additional tests needed; see `KafkaTransactionTests`.
@artembilan
Copy link
Contributor

@garyrussell ,

Any ideas what's going on with the test-case:

org.springframework.integration.kafka.inbound.InboundGatewayTests > testInbound FAILED
    org.junit.ComparisonFailure at InboundGatewayTests.java:143

?

See Travis report.

Thanks

@garyrussell
Copy link
Contributor Author

No, but it's unrelated to this PR; let's get this reviewed, merged and I'll look at that test separately.

@artembilan artembilan merged commit edf8499 into spring-attic:master Feb 14, 2018
artembilan pushed a commit to spring-attic/spring-cloud-stream-binder-kafka that referenced this pull request Feb 14, 2018
Resolves #305
Resolves #308

Requires spring-attic/spring-integration-kafka#196

`ProducerConfigurationMessageHandler` overrode `handleMessageInternal` to support
producer-initiated transactions. Now that the superclass extends `ARPMH`, this
method is no longer overridable.

Spring Integration Kafka's `KafkaProducerMessageHandler` now detects a transactional
`KafkaTemplate` and will automatically start a transaction if needed, so there is no
longer any need to override that method.

No additional tests needed; see `KafkaTransactionTests`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants