Skip to content

Add option to consume error and input streams to SystemCommandTasklet [BATCH-2318] #1283

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

Open
spring-projects-issues opened this issue Nov 4, 2014 · 0 comments

Comments

@spring-projects-issues
Copy link
Collaborator

Peter Rietzler opened BATCH-2318 and commented

If a system command outputs data to either stderr or stdout, then Java blocks once a certain amount of data has been written to it. The tasklet will hang until it reaches the configured timeout in this case.

The following part of a Spock specification should show the problem:

def "streams of system command are consumed"() {
        def file = new File(tempDir, "a")
        file.text = (1..20000).join("")

        when:
        def execution = launchJob(command: "cat " + file.absolutePath)
        then:
        execution.exitStatus == ExitStatus.COMPLETED
}

Issue Links:

  • BATCH-2329 Add log management to SystemCommandTasklet
@fmbenhassine fmbenhassine added in: core and removed status: waiting-for-triage Issues that we did not analyse yet labels May 5, 2022
@fmbenhassine fmbenhassine added this to the 5.0.0 milestone May 5, 2022
@fmbenhassine fmbenhassine modified the milestones: 5.0.0, 5.0.0-M6 Aug 31, 2022
@fmbenhassine fmbenhassine modified the milestones: 5.0.0-M6, 5.0.0-M7 Sep 20, 2022
@fmbenhassine fmbenhassine modified the milestones: 5.0.0-M7, 5.0.0-M8 Oct 4, 2022
@fmbenhassine fmbenhassine removed this from the 5.0.0-M8 milestone Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants