-
Notifications
You must be signed in to change notification settings - Fork 1.1k
The value of releasePartialSequences
is not propagated to the underlying SequenceSizeReleaseStrategy
#10003
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
Comments
…Strategy. Fixes: spring-projects#10003 Issue Link: spring-projects#10003 Signed-off-by: Jiandong Ma <[email protected]>
I think the bug is indeed in the
However, the check in the Unlike other possible use-case for So, I suggest only the fix for this issue as I've shown in the begging: just this |
…Strategy. Fixes: spring-projects#10003 Issue Link: spring-projects#10003 Signed-off-by: Jiandong Ma <[email protected]>
…Strategy. Fixes: spring-projects#10003 Issue Link: spring-projects#10003 Signed-off-by: Jiandong Ma <[email protected]>
Fixes: spring-projects#10003 Issue Link: spring-projects#10003 Signed-off-by: Jiandong Ma <[email protected]>
…uences propagation Fixes: #10003 Issue Link: #10003 The `AbstractCorrelatingMessageHandler`.setReleasePartialSequences()` populates a `SequenceSizeReleaseStrategy`, but don't propagate the `releasePartialSequences` into that strategy for its "partial" logic. Signed-off-by: Jiandong Ma <[email protected]> Co-authored by: Artem Bilan <[email protected]> (cherry picked from commit c58e218)
…uences propagation Fixes: #10003 Issue Link: #10003 The `AbstractCorrelatingMessageHandler`.setReleasePartialSequences()` populates a `SequenceSizeReleaseStrategy`, but don't propagate the `releasePartialSequences` into that strategy for its "partial" logic. Signed-off-by: Jiandong Ma <[email protected]> Co-authored by: Artem Bilan <[email protected]> (cherry picked from commit c58e218)
taking a example from unit test (which is disabled due to Time sensitive issue)
test method reference
org.springframework.integration.aggregator.AggregatorTests#testAggPerfDefaultPartial
in above test, we set releasePartialSequences to true, which will set releaseStrategy to
SequenceSizeReleaseStrategy
.however, the releasePartialSequences value is never propagated to SequenceSizeReleaseStrategy.
actually it is propagated in onInit() method, inside
afterPropertiesSet()
, which means only we callafterPropertiesSet()
, it will be propagated.I think it is our unit test issue, also the assertion is not correct. even it passes when we enabled the test.
for fix, I prefer remove the value propagation in method
onInit()
, and add this logic insetReleasePartialSequences()
kindly confirm.
The text was updated successfully, but these errors were encountered: