mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
java: dump extra info for ftruncate assertion
Nightly ran and encountered a situation in which fstat following ftruncate reported a size not equal to the truncated size. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
71a0c793ab
commit
f5a95dc700
@ -764,6 +764,10 @@ public class CephMountTest {
|
||||
int crop_size = 333333;
|
||||
mount.ftruncate(fd, crop_size);
|
||||
mount.fstat(fd, st);
|
||||
if (st.size != crop_size) {
|
||||
System.err.println("ftruncate error: st.size=" + st.size + " crop_size=" + crop_size);
|
||||
assertTrue(false);
|
||||
}
|
||||
assertTrue(st.size == crop_size);
|
||||
mount.close(fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user