adlfs icon indicating copy to clipboard operation
adlfs copied to clipboard

Fixed weakref async credential close when self.credential is None

Open gabrieldaiha opened this issue 3 years ago • 3 comments

The PR #328 included a weakref to close async credential, to avoid the Unclosed Client Session warning.

This PR aims to fix the case that we can have self.credential = None after passing the self.do_connect.

Lines 470-471 of spec.py is the fix: https://github.com/gabrieldaiha/adlfs/blob/d2a5be68af7934025f884d2dc523f1708738c6d7/adlfs/spec.py#L470-L471

gabrieldaiha avatar Jul 23 '22 02:07 gabrieldaiha

Tests are claiming an error about resource name size that it does not have relationship with this PR. @hayesgb anything happened with yesterday's MR in these tests?

  • test_fetch_entire_blob
  • test_fetch_first_half
  • test_fetch_middle

gabrieldaiha avatar Jul 23 '22 13:07 gabrieldaiha

Not that I'm aware of, but I'll check. Its interesting that its only failing in DEV

hayesgb avatar Jul 25 '22 01:07 hayesgb

Not that I'm aware of, but I'll check. Its interesting that its only failing in DEV

Any news?

gabrieldaiha avatar Jul 27 '22 12:07 gabrieldaiha