• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openbraininstitute / libsonata / 23850488226

01 Apr 2026 01:14PM UTC coverage: 93.163% (-0.004%) from 93.167%
23850488226

Pull #38

github

mgeplf
Don't use HDF5's default locking behavior when opening files read only

* HDF5 uses file locks to implement a `Single Writer, Multiple Reader` model
* We expect the SONATA HDF5 files to always be finished reading, so we
  don't benefit from this, and on some files systems, there are a finite
  amount of locks (plus it's a pessimizing default)
* we don't want to rely on `HDF5_USE_FILE_LOCKING` to be set
* see more info: https://support.hdfgroup.org/documentation/hdf5/latest/_file_lock.html
* Note: this requires that any other files opened with the HDF5 library
  be opened with the same flags.  Thus, if `h5py` is used to open the file
  concurrently with `libsonata`, there may be failures if the locking
  flags aren't set the same we are using `use_file_locking=True` and
  `ignore_when_disabled=True`
Pull Request #38: Don't use HDF5's default locking behavior when opening files read only

16 of 17 new or added lines in 4 files covered. (94.12%)

2480 of 2662 relevant lines covered (93.16%)

51.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.95
/src/hdf5_reader.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc