Skip to content

Enable error printing for internal data filters - #6539

Merged
lrknox merged 8 commits into
HDFGroup:developfrom
fortnern:6194
Jul 21, 2026
Merged

Enable error printing for internal data filters#6539
lrknox merged 8 commits into
HDFGroup:developfrom
fortnern:6194

Conversation

@fortnern

@fortnern fortnern commented Jul 20, 2026

Copy link
Copy Markdown
Member

Prevent pausing the error stack when the filter is mandatory and there is no callback, and prevent saving/restoring the error stack when calling a library internal filter. This currently has two limitations:

  1. External filters that push to the default error stack will need to print the error stack before they return
  2. If a filter failure callback is used, error messages issued by the filter will not be printed, even if the callback returns failure

I will continue investigating these cases.

Fixes #6194

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Checklist

This PR touches the following areas. Each needs a sign-off
from its listed owners before merging.

✅ All areas have been signed off.

Comment thread test/dsets.c Outdated
/*-------------------------------------------------------------------------
* Function: test_filter_error_msg
*
* Purpose: Tests that the library properly fails when the buffer size

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this comment is a leftover copy from test_bad_buf_size

Comment thread test/dsets.c Outdated
}};
static const char *filter_error_msg_msg =
"Hello I am a unique error message written for the test_filter_error_msg test in dsets.c";
bool enable_error_msg;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is only used in this file, it should probably be declared static. Same goes for error_msg_found, dsets_h5zregister_direct, and dsets_h5zunregister_direct.

Comment thread src/H5Z.c
@fortnern
fortnern requested review from hyoklee and lrknox as code owners July 20, 2026 19:28
@github-actions
github-actions Bot removed the request for review from hyoklee July 20, 2026 19:29
@fortnern

Copy link
Copy Markdown
Member Author

Thanks Matt, I've addressed the comments.

@fortnern

Copy link
Copy Markdown
Member Author

ROS3 and nvhpc failures are unrelated to this PR

@fortnern
fortnern requested a review from mattjala July 21, 2026 02:24
@github-actions
github-actions Bot removed the request for review from vchoi-hdfgroup July 21, 2026 02:24
@fortnern fortnern added this to the HDF5 2.2.0 milestone Jul 21, 2026
@lrknox
lrknox merged commit bafc55c into HDFGroup:develop Jul 21, 2026
242 of 244 checks passed
@github-project-automation github-project-automation Bot moved this from To be triaged to Done in HDF5 - TRIAGE & TRACK Jul 21, 2026
scivision pushed a commit to scivision/hdf5 that referenced this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Errors in data filters are not printed

3 participants