Bug #77160 | file is not closed and warning is generated | ||
---|---|---|---|
Submitted: | 26 May 2015 14:27 | Modified: | 3 Sep 2021 14:39 |
Reporter: | Miroslav Balaz | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[26 May 2015 14:27]
Miroslav Balaz
[17 Jul 2015 8:31]
Andrii Nikitin
It doesn't look as actual problem because of parameter closefd , which is Set to True by default : https://docs.python.org/3.3/library/functions.html#open So the file will be closed eventually by GC At the same time I Verify it to suppress warning and make sure that files are closed explicitly. According to: https://bugs.python.org/issue10093 and https://docs.python.org/3/whatsnew/3.2.html "the delay in deallocating the object could produce various issues". E.g. on some filesystems another process may meet issues deleting file immediately after executing LOAD DATA if python still has it open (before GC has chance to release it)
[3 Sep 2021 14:39]
Nuno Mariz
Posted by developer: Fixed by WL#14098