summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-08-18 22:43:01 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-08-18 22:43:01 (GMT)
commit1373eec7e5e0c8d44a7781c0fe244a22660d9477 (patch)
tree472fadce8d6949d72bc962a00c81eb9cb5521d1c
parent2d1fc21f4988fb200318524dbfb43c3fc8161d11 (diff)
parent38310e91760795632252aecddc294139fc00c449 (diff)
downloadhdf5-1373eec7e5e0c8d44a7781c0fe244a22660d9477.zip
hdf5-1373eec7e5e0c8d44a7781c0fe244a22660d9477.tar.gz
hdf5-1373eec7e5e0c8d44a7781c0fe244a22660d9477.tar.bz2
Merge branch 'feature/vfd_swmr' into multi
-rw-r--r--test/vfd_swmr_bigset_writer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c
index 701c6bc..2da7566 100644
--- a/test/vfd_swmr_bigset_writer.c
+++ b/test/vfd_swmr_bigset_writer.c
@@ -683,6 +683,8 @@ open_extensible_dset(state_t *s, unsigned int which)
es = disable_estack();
for (i = 0; i < tries; i++) {
+ struct timespec one_tenth = {.tv_sec = 0,
+ .tv_nsec = 1000000000L / 10};
ds = H5Dopen(s->file[0], dname, s->dapl);
@@ -690,15 +692,17 @@ open_extensible_dset(state_t *s, unsigned int which)
break;
if (below_speed_limit(&last, &ival)) {
- warnx("H5Dopen(, \"%s\", ) failed, %d retries remain",
+ warnx("H5Dopen(, \"%s\", ) transient failure, %d retries remain",
dname, tries - i - 1);
}
+ while (nanosleep(&one_tenth, &one_tenth) == -1 && errno == EINTR)
+ ; // do nothing
}
restore_estack(es);
if (i == tries) {
errx(EXIT_FAILURE, "H5Dopen(, \"%s\", ) failed after %d tries",
- dname, tries - i - 1);
+ dname, tries);
}
if ((ty = H5Dget_type(ds)) < 0)