-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: implement support for event upcasters, fix #193 #195
feature: implement support for event upcasters, fix #193 #195
Conversation
The build seem to break because some issues with the build pipeline, see #194 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly requesting changes as this code should also upcast regular event messages. There's also a discussion to be had on many-to-one and many-to-many upcaster support (or warnings).
...gure/src/main/java/org/axonframework/extensions/kafka/autoconfig/KafkaAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up remarks. Looking good so far though.
...gure/src/main/java/org/axonframework/extensions/kafka/autoconfig/KafkaAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
@smcvb I addressed your issues and believe that now the implementation is meeting the requirements. I had to tinker a little with I added some documentation on private methods to reflect the state of this discussion and make it easier to understand for the further development. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits, mainly typos I would say but LGTM!
...gure/src/main/java/org/axonframework/extensions/kafka/autoconfig/KafkaAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
...main/java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverter.java
Outdated
Show resolved
Hide resolved
kafka/src/main/java/org/axonframework/extensions/kafka/eventhandling/HeaderUtils.java
Outdated
Show resolved
Hide resolved
.../java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverterTest.java
Show resolved
Hide resolved
…ndling/DefaultKafkaMessageConverter.java Co-authored-by: Lucas Campos <[email protected]>
…ndling/DefaultKafkaMessageConverter.java Co-authored-by: Lucas Campos <[email protected]>
…ndling/HeaderUtils.java Co-authored-by: Lucas Campos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit left, other than that, looking good @zambrovski!
kafka/src/main/java/org/axonframework/extensions/kafka/eventhandling/HeaderUtils.java
Show resolved
Hide resolved
.../java/org/axonframework/extensions/kafka/eventhandling/DefaultKafkaMessageConverterTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concerns have been addressed, hence approving.
Interesting to see your changes consistently seem to trigger the normally periodically As I don't have a hunch where to look right away, I am taking this route in favor of a thorough fix. |
@smcvb I'm looking on it. In general, I think it is a good idea to separate unit tests from integration tests running with Kafka ... Usually, we separate them into two phases test/integration-test (surefire/failsafe) and run using two independent Maven runs, using Maven profiles. Such errors as here:
are probably timing / resource related issues inside the I-Test and has more to do with a problem in test setup than in implementation. It would be easier to track the problems down if those tests could be separated from the usual assertions inside JUnit tests... |
Thanks for your two cents @zambrovski; was leaning toward something similar for this project. |
I just created a new issue for that #199 ... Might find some time to make an initial PR for this... |
That would be amazing @zambrovski! Much appreciated. |
I am going to trust the build is correct and merge it although our workflow is not happy about it. |
No description provided.