[
https://issues.apache.org/jira/browse/BEAM-13208?focusedWorklogId=685426&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-685426
]
ASF GitHub Bot logged work on BEAM-13208:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Nov/21 17:05
Start Date: 23/Nov/21 17:05
Worklog Time Spent: 10m
Work Description: pabloem commented on a change in pull request #16026:
URL: https://github.com/apache/beam/pull/16026#discussion_r755340821
##########
File path: playground/backend/internal/code_processing/code_processing.go
##########
@@ -110,20 +102,9 @@ func Process(ctx context.Context, cacheService
cache.Cache, lc *fs_tool.LifeCycl
// run
logger.Infof("%s: Run() ...\n", pipelineId)
runCmd := executor.Run(ctxWithTimeout)
-
var runError bytes.Buffer
- runOutput := &streaming.RunOutputWriter{Ctx: ctxWithTimeout,
CacheService: cacheService, PipelineId: pipelineId}
- runCmd.Stderr = &runError
- runCmd.Stdout = runOutput
- go func(cmd *exec.Cmd, successChannel chan bool, errChannel chan error,
dataChannel chan interface{}) {
- err := cmd.Run()
- if err != nil {
- errChannel <- err
- successChannel <- false
- } else {
- successChannel <- true
- }
- }(runCmd, successChannel, errorChannel, dataChannel)
+ runOutput := streaming.RunOutputWriter{Ctx: ctxWithTimeout,
CacheService: cacheService, PipelineId: pipelineId}
Review comment:
some users may want to read stderr in the frontend as well as stdout, so
maybe it makes sense to write that to the cache as well.
if I remember correctly, LOG data is weitten to stderr, while only
System.out.println-type data will be sent to stdout
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 685426)
Time Spent: 40m (was: 0.5h)
> [Playground] Separate stderr from stdout for code processing steps
> ------------------------------------------------------------------
>
> Key: BEAM-13208
> URL: https://issues.apache.org/jira/browse/BEAM-13208
> Project: Beam
> Issue Type: Task
> Components: beam-playground
> Reporter: Aydar Zaynutdinov
> Assignee: Aydar Zaynutdinov
> Priority: P3
> Labels: beam-playground-backend, beam-playground-sprint-3,
> beam-playground-sprint-4
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Now for compile and run steps cmd.CombineOutput() is used. Need to separate
> stderr from stdout for these steps.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)