spring-projects / spring-projects/spring-integration

Consider Adding stop(timeout) to Polled Endpoints [INT-3118]

Open
#7,095 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.