Skip to content

Conversation

@micheles
Copy link
Contributor

In large calculations I was getting the error

  File "/home/michele/oq-engine/openquake/commonlib/datastore.py", line 542, in __contains__
    return key in self.hdf5 or self.parent and key in self.parent.hdf5
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/home/michele/openquake/lib64/python3.10/site-packages/h5py/_hl/group.py", line 483, in __contains__
    return self._e(name) in self.id
  File "h5py/h5g.pyx", line 466, in h5py.h5g.GroupID.__contains__
  File "h5py/h5g.pyx", line 467, in h5py.h5g.GroupID.__contains__
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5g.pyx", line 540, in h5py.h5g._path_valid
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5l.pyx", line 212, in h5py.h5l.LinkProxy.exists
RuntimeError: Unable to get link info (message type not found)

Solved by reading the parent site collection. Also, some cleanup.

@micheles micheles added the bug label Oct 13, 2023
@micheles micheles added this to the Engine 3.18.0 milestone Oct 13, 2023
@micheles micheles self-assigned this Oct 13, 2023
@micheles micheles merged commit e17071f into master Oct 13, 2023
@micheles micheles deleted the hc-fix branch October 13, 2023 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants