You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error handling in SharedTensor.close() and drop()
Changed exception handling in SharedTensor methods:
- close(): Changed from silently logging a warning to properly logging
an error with the exception message. This provides better visibility
when shared memory cleanup fails, while still not raising exceptions
that could cause issues in cleanup paths (like __del__).
- drop(): Fixed exception chaining to use 'raise ... from e' for better
error traceability and to comply with flake8 B904.
Test plan:
- Ran pytest tests/unit_tests/util/test_shared_tensor.py
- 64 tests passed (1 pre-existing segfault in test_multiprocess_bidirectional)
0 commit comments