diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2019-08-20 16:32:11 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2019-08-20 16:32:11 (GMT) |
commit | f125d36da2de24fd09022951e33671af7daffbd3 (patch) | |
tree | 4c05f90af089c6ff1e5f849905dbd189f4d662c4 | |
parent | a08f78f9ac569962a1261f775cb4efc78b5f484e (diff) | |
parent | 13a3be1caa3bd32bbf556f4045708a880e54fc7f (diff) | |
download | hdf5-f125d36da2de24fd09022951e33671af7daffbd3.zip hdf5-f125d36da2de24fd09022951e33671af7daffbd3.tar.gz hdf5-f125d36da2de24fd09022951e33671af7daffbd3.tar.bz2 |
Merge pull request #1879 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/110_HDFFV-10813-swmr-test-fails-on-jelly-with to hdf5_1_10
* commit '13a3be1caa3bd32bbf556f4045708a880e54fc7f':
Merge pull request #1865 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/HDFFV-10813-swmr-test-fails-on-jelly-with to develop
-rw-r--r-- | release_docs/RELEASE.txt | 17 | ||||
-rw-r--r-- | src/H5Fint.c | 6 |
2 files changed, 21 insertions, 2 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 2a34397..277804d 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -170,6 +170,23 @@ Bug Fixes since HDF5-1.10.5 release Library ------- + - Fixed the test failure from test_metadata_read_retry_info() in + test/swmr.c + + The test failure is due to the incorrect number of bins returned for + retry info (info.nbins). The # of bins expected for 101 read attempts + is 3 instead of 2. The routine H5F_set_retries() in src/H5Fint.c + calculates the # of bins by first obtaining the log10 value for + (read attempts - 1). For PGI/19, the log10 value for 100 read attempts + is 1.9999999999999998 instead of 2.00000. When casting the log10 value + to unsigned later on, the decimal part is chopped off causing the test + failure. + + This was fixed by obtaining the rounded integer value (HDceil) for the + log10 value of read attempts first before casting the result to unsigned. + + (VC - 2019/8/14, HDFFV-10813) + - Fixed an issue where creating a file with non-default file space info together with library high bound setting to H5F_LIBVER_V18. diff --git a/src/H5Fint.c b/src/H5Fint.c index 253ec3c..eebbcf0 100644 --- a/src/H5Fint.c +++ b/src/H5Fint.c @@ -2956,8 +2956,10 @@ H5F_set_retries(H5F_t *f) /* Initialize the # of bins for retries */ f->shared->retries_nbins = 0; if(f->shared->read_attempts > 1) { - tmp = HDlog10((double)(f->shared->read_attempts - 1)); - f->shared->retries_nbins = (unsigned)tmp + 1; + /* Use HDceil to ensure that the log10 value is rounded up to the + nearest integer before casting to unsigned */ + tmp = HDceil(HDlog10((double)f->shared->read_attempts)); + f->shared->retries_nbins = (unsigned)tmp; } FUNC_LEAVE_NOAPI(SUCCEED) |