[ 
https://issues.apache.org/jira/browse/BEAM-7087?focusedWorklogId=233220&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-233220
 ]

ASF GitHub Bot logged work on BEAM-7087:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Apr/19 01:05
            Start Date: 26/Apr/19 01:05
    Worklog Time Spent: 10m 
      Work Description: lostluck commented on pull request #8406: [BEAM-7087] 
Updating Go SDK errors in base beam directory
URL: https://github.com/apache/beam/pull/8406#discussion_r278779819
 
 

 ##########
 File path: sdks/go/pkg/beam/combine.go
 ##########
 @@ -54,25 +57,26 @@ func TryCombinePerKey(s Scope, combinefn interface{}, col 
PCollection) (PCollect
        ValidateKVType(col)
        col, err := TryGroupByKey(s, col)
        if err != nil {
-               return PCollection{}, fmt.Errorf("failed to group by key: %v", 
err)
+               return PCollection{}, addCombinePerKeyCtx(err, s)
 
 Review comment:
   Just checking: Does the root error here from TryGroupByKey reveal that it's 
failing at adding a GroupByKey to the graph? Otherwise it feels like we're 
losing some context. 
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 233220)
    Time Spent: 1h 20m  (was: 1h 10m)

> Create an errors package for Go SDK
> -----------------------------------
>
>                 Key: BEAM-7087
>                 URL: https://issues.apache.org/jira/browse/BEAM-7087
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-go
>            Reporter: Daniel Oliveira
>            Assignee: Daniel Oliveira
>            Priority: Major
>             Fix For: Not applicable
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> We can't import an established errors package such as github.com/pkg/errors 
> due to how the Go SDK is currently implemented, so instead we should have our 
> own package. This package should provide the following to be worth replacing 
> the basic errors we currently use.
>  # A way to wrap other errors without losing the original error, as in 
> [https://github.com/pkg/errors]
>  # Making printed errors more legible than currently. (For ex. having 
> different wrapped errors on different lines, differentiating between errors 
> and context, etc.)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to