Skip to content

Fix Integration fixedRate property setting #28237

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

Closed

Conversation

artembilan
Copy link
Member

The spring.integration.poller.fixed-rate property
must be set to the constructor of the PeriodicTrigger
and its fixedRate flag should be set to true.
The current code-base has it exactly opposite:
the flag is set to true when fixed-delay is provided

  • Fix IntegrationAutoConfiguration.asTrigger() method
    for the proper fixedRate setting logic
  • Cover the change with a new test-case
  • Add a message handling verification to the defaultPoller()
    test to be sure that poller auto-configuration works as it is claimed

The `spring.integration.poller.fixed-rate` property
must be set to the constructor of the `PeriodicTrigger`
and its `fixedRate` flag should be set to `true`.
The current code-base has it exactly opposite:
the flag is set to `true` when `fixed-delay` is provided

* Fix `IntegrationAutoConfiguration.asTrigger()` method
for the proper `fixedRate` setting logic
* Cover the change with a new test-case
* Add a message handling verification to the `defaultPoller()`
test to be sure that poller auto-configuration works as it is claimed
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 7, 2021
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 7, 2021
@philwebb philwebb added this to the 2.6.x milestone Oct 7, 2021
@snicoll snicoll self-assigned this Oct 13, 2021
@snicoll snicoll modified the milestones: 2.6.x, 2.6.0-RC1 Oct 13, 2021
snicoll pushed a commit that referenced this pull request Oct 13, 2021
The `spring.integration.poller.fixed-rate` property must be set to the
constructor of the `PeriodicTrigger` and its `fixedRate` flag should be
set to `true`. The current code-base has it exactly opposite: the flag
is set to `true` when `fixed-delay` is provided.

* Fix `IntegrationAutoConfiguration.asTrigger()` method for the proper
`fixedRate` setting logic.
* Cover the change with a new test-case
* Add a message handling verification to the `defaultPoller()` test to
be sure that poller auto-configuration works as it is claimed.

See gh-28237
snicoll added a commit that referenced this pull request Oct 13, 2021
@snicoll snicoll closed this in f000520 Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants