Skip to content

Conversation

@hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Jan 3, 2023

Logs the traceback of the caught exception for better observability. Previously, traceback information had been lost.

  • Tests added / passed
  • Passes pre-commit run --all-files

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

       22 files  ±  0         22 suites  ±0   9h 28m 14s ⏱️ - 1m 47s
  3 289 tests +  2    3 203 ✔️ +  2       85 💤 ±0  1 ±0 
36 110 runs  +22  34 548 ✔️ +19  1 561 💤 +3  1 ±0 

For more details on these failures, see this check.

Results for commit 6e57cd3. ± Comparison against base commit b5a2078.

♻️ This comment has been updated with latest results.

@hendrikmakait hendrikmakait self-assigned this Jan 3, 2023
Comment on lines 51 to 54
except Exception:
raise RuntimeError(f"shuffle_transfer failed during shuffle {id}")
msg = f"shuffle_transfer failed during shuffle {id}"
logger.error(msg, exc_info=True)
raise RuntimeError(msg)
Copy link
Member

Choose a reason for hiding this comment

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

you should get the proper traceback with

Suggested change
except Exception:
raise RuntimeError(f"shuffle_transfer failed during shuffle {id}")
msg = f"shuffle_transfer failed during shuffle {id}"
logger.error(msg, exc_info=True)
raise RuntimeError(msg)
except Exception as exc:
raise RuntimeError(msg) from exc

Copy link
Member Author

Choose a reason for hiding this comment

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

Exception chaining sometimes threw a recursion error back in #7326 which is why we dropped it.

@fjetter fjetter merged commit 4e9e46a into dask:main Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants