spring-projects / spring-projects/spring-integration
Consider Adding stop(timeout) to Polled Endpoints [INT-3118]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 1.2k
- Avg merge
- 17h 48m
- Merged PRs (30d)
- 62
Description
Gary Russell opened INT-3118 and commented
AbstractPollingEndpoint.doStop() uses this.runningTask.cancel(true); which will attempt to interrrupt an existing poll (if any).
It would be nice if we had an option to soft cancel and wait (if necessary) and only hard-cancel after a timeout has elapsed.
Reference URL: http://forum.springsource.org/showthread.php?140958-failed-to-send-message-to-channel-within-timeout-1&p=453828#post453828
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AbstractPollingEndpoint.doStop() and inspect how runningTask.cancel(true) currently interrupts an active poll. Trace the stop lifecycle for polled endpoints and determine the expected stop(timeout) behavior, including what should happen after the timeout; completion should include coverage for the resulting cancellation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100