Skip to content
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

Implement getMessage for BulkTransferException #13061

Closed
wants to merge 1 commit into from

Conversation

scele
Copy link
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
Contributor

aiuto commented Feb 22, 2021

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

@jin
Copy link
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
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