Contribution to JDK - 8313674
Iñigo Mediavilla
imediava at gmail.com
Thu Apr 25 21:14:39 UTC 2024
After looking at JDK-8313674 I'm wondering what is the current impact:
- Is it affecting the CI or the CI is always running in linux systems with
sda devices ?
- Is it that local tests fail when they’re run from a linux device that
doesn’t have a sda device ?
In terms of possible fixes, I think that a quick fix would be to add a nvm*
device in the list of hard-coded devices to be tested. The test could
iterate over the list of devices to test skipping devices that don't exist
but running the checks on the first existing device.
As an alternative I also considered adding logic to list existing block
devices and picking one to run the test, however I've not being able to
figure out a way to do this in a simple way:
- There are libraries like (https://github.com/jnr/jnr-posix/) that
implement that logic, but I feel like it’s not worth incorporating such
library only for the purpose of this test.
- I see that there are parts of the native code in the JDK repo that use
S_ISBLK to check if a device is a block device, but I haven’t been able to
find that information surfaced to Java.
Happy to hear the thoughts of people with more background on the topic :)
Íñigo Mediavilla Saiz
On Thu, Apr 25, 2024 at 5:23 PM Iñigo Mediavilla <imediava at gmail.com> wrote:
> Hello,
>
> For my first contribution to OpenJDK, I've started looking into
> JDK-8313674.
>
> Elif Aslan, I see that you've been assigned to this ticket, would you mind
> if I try to propose a solution for it ?
>
> If Elif is OK with it, I'd like to find a sponsor, since this would be my
> first time contributing to OpenJDK. Would anyone be available to sponsor my
> contribution ?
>
> Thanks in advance
>
> Íñigo Mediavilla Saiz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20240425/e519d2e0/attachment.htm>
More information about the nio-dev
mailing list