Skip to content

Implement getMessage for BulkTransferException#13061

Closed
scele wants to merge 1 commit intobazelbuild:masterfrom
scele:issue_12927_print
Closed

Implement getMessage for BulkTransferException#13061
scele wants to merge 1 commit intobazelbuild:masterfrom
scele:issue_12927_print

Conversation

@scele
Copy link
Copy Markdown
Contributor

@scele scele commented Feb 18, 2021

Before this change, BulkTransferExceptions would be reported like this:

  Executing genrule //:foo failed: Exec failed due to IOException: null

By implementing getMessage(), we get a more informative message, in the case
when there is only one suppressed exception:

  Executing genrule //:foo failed: Exec failed due to IOException:
    Output download failed: Expected digest '8a39d2abd3999ab73c34db2476849cddf303ce389b35826850f9a700589b4a90/262144'
    does not match received digest 'dae4d3dce1bb0a9414f61a65ee07622fa225ec01e6efe6df6e78f9ad5c58480d/327680'.

and in the case when there are multiple suppressed exceptions:

  Executing genrule //:foo failed: Exec failed due to IOException:
    2 errors during bulk transfer

This helps diagnosing issues like #12927

Before this change, BulkTransferExceptions would be reported like this:

  Executing genrule //:foo failed: Exec failed due to IOException: null

By implementing getMessage(), we get a more informative message, in the case
when there is only one suppressed exception:

  Executing genrule //:foo failed: Exec failed due to IOException:
    Output download failed: Expected digest
    '8a39d2abd3999ab73c34db2476849cddf303ce389b35826850f9a700589b4a90/262144'
    does not match received digest
    'dae4d3dce1bb0a9414f61a65ee07622fa225ec01e6efe6df6e78f9ad5c58480d/327680'.

and in the case when there are multiple suppressed exceptions:

  Executing genrule //:foo failed: Exec failed due to IOException:
    2 errors during bulk transfer

This helps diagnosing issues like bazelbuild#12927
@google-cla google-cla Bot added the cla: yes label Feb 18, 2021
@aiuto aiuto added the team-Remote-Exec Issues and PRs for the Execution (Remote) team label Feb 19, 2021
@aiuto aiuto requested review from coeuvre and jin February 22, 2021 15:29
@aiuto
Copy link
Copy Markdown

aiuto commented Feb 22, 2021

@jin @coeuvre Can one of you look at this?

@jin
Copy link
Copy Markdown
Member

jin commented Feb 22, 2021

Looks like RE code; I'll defer to @coeuvre to look at this.

@jin jin removed their request for review February 22, 2021 15:32
Copy link
Copy Markdown
Member

@coeuvre coeuvre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bazel-io bazel-io closed this in 17afbe4 Feb 24, 2021
philwo pushed a commit that referenced this pull request Mar 15, 2021
Before this change, BulkTransferExceptions would be reported like this:
```
  Executing genrule //:foo failed: Exec failed due to IOException: null
```
By implementing getMessage(), we get a more informative message, in the case
when there is only one suppressed exception:
```
  Executing genrule //:foo failed: Exec failed due to IOException:
    Output download failed: Expected digest '8a39d2abd3999ab73c34db2476849cddf303ce389b35826850f9a700589b4a90/262144'
    does not match received digest 'dae4d3dce1bb0a9414f61a65ee07622fa225ec01e6efe6df6e78f9ad5c58480d/327680'.
```
and in the case when there are multiple suppressed exceptions:
```
  Executing genrule //:foo failed: Exec failed due to IOException:
    2 errors during bulk transfer
```
This helps diagnosing issues like #12927

Closes #13061.

PiperOrigin-RevId: 359250576
philwo pushed a commit that referenced this pull request Mar 15, 2021
Before this change, BulkTransferExceptions would be reported like this:
```
  Executing genrule //:foo failed: Exec failed due to IOException: null
```
By implementing getMessage(), we get a more informative message, in the case
when there is only one suppressed exception:
```
  Executing genrule //:foo failed: Exec failed due to IOException:
    Output download failed: Expected digest '8a39d2abd3999ab73c34db2476849cddf303ce389b35826850f9a700589b4a90/262144'
    does not match received digest 'dae4d3dce1bb0a9414f61a65ee07622fa225ec01e6efe6df6e78f9ad5c58480d/327680'.
```
and in the case when there are multiple suppressed exceptions:
```
  Executing genrule //:foo failed: Exec failed due to IOException:
    2 errors during bulk transfer
```
This helps diagnosing issues like #12927

Closes #13061.

PiperOrigin-RevId: 359250576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants