Skip to content

Fix test_error chunk offset detection for HDF5 2.1.0#168

Merged
markcmiller86 merged 1 commit into
llnl:masterfrom
brtnfld:fix-test-error-chunk-offset
Jun 12, 2026
Merged

Fix test_error chunk offset detection for HDF5 2.1.0#168
markcmiller86 merged 1 commit into
llnl:masterfrom
brtnfld:fix-test-error-chunk-offset

Conversation

@brtnfld

@brtnfld brtnfld commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Use H5Dget_chunk_info_by_coord to dynamically find the chunk's file offset instead of using a hardcoded value.

Fixes #167

Use H5Dget_chunk_info_by_coord (HDF5 1.12+) to dynamically find the
chunk's file offset instead of the hardcoded value 3496.  HDF5 2.1.0
changed internal file layout so the chunk no longer lives at that
address, causing the raw-byte corruption to miss the ZFP stream and
yielding only 652 differing values instead of the expected 1408.
@brtnfld brtnfld requested a review from jhendersonHDF June 12, 2026 16:12
@markcmiller86 markcmiller86 merged commit 0b07b3c into llnl:master Jun 12, 2026
10 checks passed
@markcmiller86

Copy link
Copy Markdown
Member

Whoops...sorry @brtnfld. I hadn't seen your asked for @jhendersonHDF for review.

@jhendersonHDF please go ahead and leave a comment here whether the update was ok. If it wasn't, I can unmerge it.

@jhendersonHDF

Copy link
Copy Markdown
Collaborator

From my reading it looks like the test is just trying to corrupt a bit of the raw data towards the start of the dataset's data (now the first chunk in this case)? If so, this looks fine to me.

@markcmiller86

Copy link
Copy Markdown
Member

From my reading it looks like the test is just trying to corrupt a bit of the raw data towards the start of the dataset's data (now the first chunk in this case)? If so, this looks fine to me.

Yes, thats right...so we can exercise error behavior for that kind of data corruption. Ok, thanks for the quick look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing test 'test_error' with HDF5 2.1.0

3 participants