Revert erroneous change which drops user events on some completions.#4641
Revert erroneous change which drops user events on some completions.#4641sven-lange-last merged 6 commits intoapache:masterfrom
Conversation
|
Currently User Event feature does not have full coverage as it's disabled by default. With support for embedded Kafka in Standalone we can now add an integration test where Invoker is started with user event enabled like being done in Activation Persister IT and then assert if messages are indeed being sent. |
Codecov Report
@@ Coverage Diff @@
## master #4641 +/- ##
==========================================
- Coverage 84.62% 78.98% -5.64%
==========================================
Files 183 183
Lines 8349 8347 -2
Branches 568 569 +1
==========================================
- Hits 7065 6593 -472
- Misses 1284 1754 +470
Continue to review full report at Codecov.
|
|
PG 1 / 25 |
|
I have pushed a IT test here which current fails on master but passes with this PR. If it seems fine I can push that to current PR branch |
|
Thanks @chetanmeh - I'll defer to you since it's more work for you. |
|
Pushed the tests to current PR branch |
|
Thanks @chetanmeh! Note to @sven-lange-last when merging this PR please do not squash to preserve Chetan's commit. |
|
I ran following The test failed once (PG 1 / 25) because it only waits for the user event message to arrive on Kafka for 10 seconds. So from my perspective, we should increase the maximum wait time to make the test a little more robust. A longer max poll time should not harm in most cases because the The next test run of In other words: this PR fixes the missing user events. |
sven-lange-last
left a comment
There was a problem hiding this comment.
@rabbah thanks a lot for fixing this problem quickly. Your fix looks good to me. I verified that it re-enables user events as expected.
@chetanmeh thanks a lot for contributing a standalone test.
|
Changes look fine and can now be merged |
|
@steffenrost plans to improve the current |
…pache#4641) * Integration test for User Events running against standalone server * Relaxing wait time in User Events test from 10 to 60 seconds to make test more robust
This fixes a bug introduced in a previous PR which drops user events on completion messages that do not carry a result (which is needed for user event generation).
Best to review this ignoring white space.
It appears there are no tests that caught the bug and so some tests are needed.
@sven-lange-last perhaps to verify the fix you can suggest a test to add 🙏
Description
Related issue and scope
My changes affect the following components
Types of changes
Checklist: