-
Bug
-
Resolution: Fixed
-
P3
-
17, 21, 23
-
+ uname -a
Linux j66e07344.sqa.eu95 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
+ cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"+ free -h
total used free shared buff/cache available
Mem: 187Gi 7.2Gi 61Gi 21Mi 118Gi 178Gi
Swap: 0B 0B 0B
+ lscpu
+ head -n 25
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 96
On-line CPU(s) list: 0-95
Thread(s) per core: 2
Core(s) per socket: 24
Socket(s): 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Stepping: 4
CPU MHz: 1134.259
CPU max MHz: 3100.0000
CPU min MHz: 1000.0000
BogoMIPS: 5000.00
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 33792K
NUMA node0 CPU(s): 0-95
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d
+ ldd --version
ldd (GNU libc) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
+ java -version
openjdk version "23" 2024-09-17
OpenJDK Runtime Environment (build 23)
OpenJDK 64-Bit Server VM (build 23, mixed mode, sharing)
+ java -Xinternalversion
OpenJDK 64-Bit Server VM (23) for linux-amd64 JRE (23), built on 2024-04-01T07:38:47Z with gcc 10.2.1 20210130 (Red Hat 10.2.1-11)
+ git remote -v
origin git@github.com:openjdk/jdk.git (fetch)
origin git@github.com:openjdk/jdk.git (push)
+ git log -n 1
+ head -n 1
commit 8464ce6db5cbd5d50ac2a2bcba905b7255f510f5+ uname -a Linux j66e07344.sqa.eu95 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux + cat /etc/os-release NAME="Alibaba Cloud Linux" VERSION="3 (Soaring Falcon)" ID="alinux" ID_LIKE="rhel fedora centos anolis" VERSION_ID="3" UPDATE_ID="9" PLATFORM_ID="platform:al8" PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)" ANSI_COLOR="0;31" HOME_URL="https://www.aliyun.com/" + free -h total used free shared buff/cache available Mem: 187Gi 7.2Gi 61Gi 21Mi 118Gi 178Gi Swap: 0B 0B 0B + lscpu + head -n 25 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz Stepping: 4 CPU MHz: 1134.259 CPU max MHz: 3100.0000 CPU min MHz: 1000.0000 BogoMIPS: 5000.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 33792K NUMA node0 CPU(s): 0-95 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d + ldd --version ldd (GNU libc) 2.32 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. + java -version openjdk version "23" 2024-09-17 OpenJDK Runtime Environment (build 23) OpenJDK 64-Bit Server VM (build 23, mixed mode, sharing) + java -Xinternalversion OpenJDK 64-Bit Server VM (23) for linux-amd64 JRE (23), built on 2024-04-01T07:38:47Z with gcc 10.2.1 20210130 (Red Hat 10.2.1-11) + git remote -v origin git@github.com:openjdk/jdk.git (fetch) origin git@github.com:openjdk/jdk.git (push) + git log -n 1 + head -n 1 commit 8464ce6db5cbd5d50ac2a2bcba905b7255f510f5
-
b04
-
generic
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8337387 | 23.0.2 | Sendao Yan | P3 | Resolved | Fixed | b01 |
JDK-8337930 | 23.0.1 | Sendao Yan | P3 | Resolved | Fixed | b06 |
JDK-8336905 | 23 | Sendao Yan | P3 | Resolved | Fixed | b34 |
JDK-8337086 | 21.0.5 | Sendao Yan | P3 | Resolved | Fixed | b01 |
JDK-8337153 | 17.0.13 | Sendao Yan | P3 | Resolved | Fixed | b01 |
The test log snippet:
File creation time reported as: 1970-01-01T00:00:00Z
java.lang.RuntimeException: Expected to be close to: 2024-06-16T02:53:30.875280044Z
at CreationTime.test(CreationTime.java:72)
at CreationTime.main(CreationTime.java:132)
The testcase use /tmp directory to create the file and get the createtime of this file. But on alinux3(alibaba cloud linux version 3), the /tmp is mount as tmpfs, it's not a real physic disk paitition, it's mount from RAM, and the alinux3 doesn't support get the birth time on tmpfs.
On ubuntu22, when I create a file on /dev/shm(it's also a tmpfs type partition), stat also doesn't support birth time, show as below:
yansendao@jvmtest:[~]> df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 25G 964K 25G 1% /run
/dev/vda3 40G 26G 12G 70% /
tmpfs 123G 0 123G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/vda2 191M 5.3M 186M 3% /boot/efi
/dev/vdb 492G 215G 252G 46% /home
tmpfs 25G 0 25G 0% /run/user/998
yansendao@jvmtest:[~]> touch /dev/shm/file
yansendao@jvmtest:[~]> stat /dev/shm/file
File: /dev/shm/file
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 1dh/29d Inode: 3 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 998/yansendao) Gid: ( 998/yansendao)
Access: 2024-06-16 15:58:48.562278964 +0800
Modify: 2024-06-16 15:58:48.562278964 +0800
Change: 2024-06-16 15:58:48.562278964 +0800
Birth: -
Alinux3 OS information:
> cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"
> uname -a
Linux j66e07344.sqa.eu95 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
> ldd --version
ldd (GNU libc) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
> df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 94G 0 94G 0% /dev
tmpfs 94G 20K 94G 1% /dev/shm
tmpfs 94G 2.7M 94G 1% /run
tmpfs 94G 0 94G 0% /sys/fs/cgroup
/dev/sda3 220G 28G 184G 13% /
tmpfs 94G 20M 94G 1% /tmp
/dev/sda2 200M 5.8M 195M 3% /boot/efi
tmpfs 19G 0 19G 0% /run/user/0
/dev/nvme0n1 880G 414G 421G 50% /home
tmpfs 19G 0 19G 0% /run/user/995
- backported by
-
JDK-8336905 Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java fails on alinux3
- Resolved
-
JDK-8337086 Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java fails on alinux3
- Resolved
-
JDK-8337153 Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java fails on alinux3
- Resolved
-
JDK-8337387 Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java fails on alinux3
- Resolved
-
JDK-8337930 Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java fails on alinux3
- Resolved
- relates to
-
JDK-8316304 (fs) Add support for BasicFileAttributes.creationTime() for Linux
- Resolved
-
JDK-8339869 [21u] Test CreationTime.java fails with UnsatisfiedLinkError after 8334339
- Resolved
- links to
-
Commit openjdk/jdk/7baddc20
-
Commit(jdk23) openjdk/jdk/2288c052
-
Commit(master) openjdk/jdk17u-dev/c7ca5f83
-
Commit(master) openjdk/jdk21u-dev/928219d3
-
Review openjdk/jdk/19737
-
Review(jdk23) openjdk/jdk/19848
-
Review(master) openjdk/jdk17u-dev/2736
-
Review(master) openjdk/jdk21u-dev/862