summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative_datatype.c
diff options
context:
space:
mode:
authorraylu-hdf <60487644+raylu-hdf@users.noreply.github.com>2022-07-12 15:55:34 (GMT)
committerGitHub <noreply@github.com>2022-07-12 15:55:34 (GMT)
commitb2363a8195408331797cd32820fbb0dfc288f646 (patch)
tree6234565e810281f9f3be2f68963db16480d01b1c /src/H5VLnative_datatype.c
parentc62b02660933852d0d5528aee02d8509be13423a (diff)
downloadhdf5-b2363a8195408331797cd32820fbb0dfc288f646.zip
hdf5-b2363a8195408331797cd32820fbb0dfc288f646.tar.gz
hdf5-b2363a8195408331797cd32820fbb0dfc288f646.tar.bz2
H5Oflush fails for parallel (#1876)
* H5Oflush causes H5Fclose to trigger an assertion failure in metadata cache for parallel. This commit makes sure H5Oflush fails for parallel until this problem is solved in the future. * Committing clang-format changes * Changed the use of H5F_get_driver_id to H5F_HAS_FEATURE. Co-authored-by: songyulu <songyulu@jelly.ad.hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5VLnative_datatype.c')
-rw-r--r--src/H5VLnative_datatype.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5VLnative_datatype.c b/src/H5VLnative_datatype.c
index bf6f37c..027b4ac 100644
--- a/src/H5VLnative_datatype.c
+++ b/src/H5VLnative_datatype.c
@@ -237,6 +237,11 @@ H5VL__native_datatype_specific(void *obj, H5VL_datatype_specific_args_t *args, h
switch (args->op_type) {
/* H5VL_DATATYPE_FLUSH */
case H5VL_DATATYPE_FLUSH: {
+ /* Currently, H6Oflush causes H5Fclose to trigger an assertion failure in metadata cache.
+ * Leave this situation for the future solution */
+ if (H5F_HAS_FEATURE(dt->oloc.file, H5FD_FEAT_HAS_MPI))
+ HGOTO_ERROR(H5E_DATASET, H5E_UNSUPPORTED, FAIL, "H5Oflush isn't supported for parallel")
+
if (H5O_flush_common(&dt->oloc, args->args.flush.type_id) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTFLUSH, FAIL, "unable to flush datatype")