Skip to content

raw fd close( ) runs more than once from garbage collect #787

@d-w-moore

Description

@d-w-moore

If a trace is put on the following, the PRC will attempt to call close_file on the same object twice.
The problem is apparently avoided if we call the overridden close( ) from iRODSDataObjectRaw's base class sooner, causing the closed property to be set True the first time raw.close( ) is called

import sys
import irods
s = irods.helpers.make_session()
f = s.data_objects.open('/tempZone/home/rods/abcz','w'))
f.write(b'_')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions