[
https://issues.apache.org/jira/browse/HDDS-15855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18096145#comment-18096145
]
Gargi Jaiswal commented on HDDS-15855:
--------------------------------------
Closing this PR as found the correct root cause of the failure.
> Fix hdds-rocks-native propertyFile write when target dir is missing
> -------------------------------------------------------------------
>
> Key: HDDS-15855
> URL: https://issues.apache.org/jira/browse/HDDS-15855
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Gargi Jaiswal
> Assignee: Gargi Jaiswal
> Priority: Major
>
> While rebasing short-circuit read CI build failure in
> {color:#de350b}hdds-rocks-native{color} when {color:#de350b}-Pdist
> -Drocks_tools_native{color} is enabled. *JniLibNamePropertyWriter* writes
> *target/propertyFile.txt* during Maven initialize before target/ exists,
> causing NoSuchFileException and a follow-on properties-maven-plugin failure.
> {code:java}
> java.nio.file.NoSuchFileException:
> /home/runner/work/ozone/ozone/hadoop-hdds/rocks-native/target/propertyFile.txt
> at
> java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
> at
> java.base/sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:213)
> at
> java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:244)
> at
> java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:426)
> at java.base/java.nio.file.Files.newOutputStream(Files.java:215)
> at
> org.apache.hadoop.hdds.utils.db.managed.JniLibNamePropertyWriter.main(JniLibNamePropertyWriter.java:39)
> at
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
> at java.base/java.lang.reflect.Method.invoke(Method.java:565)
> at
> org.codehaus.mojo.exec.AbstractExecJavaBase.executeMainMethod(AbstractExecJavaBase.java:402)
> at
> org.codehaus.mojo.exec.ExecJavaMojo.executeMainMethod(ExecJavaMojo.java:142)
> at
> org.codehaus.mojo.exec.AbstractExecJavaBase.doExecClassLoader(AbstractExecJavaBase.java:377)
> at
> org.codehaus.mojo.exec.AbstractExecJavaBase.lambda$execute$0(AbstractExecJavaBase.java:287)
> at java.base/java.lang.Thread.run(Thread.java:1474) {code}
> *Build Failure:*
> https://github.com/Gargi-jais11/ozone/actions/runs/29311743086
> {*}Fix :{*}Create the parent directory in {{JniLibNamePropertyWriter}} before
> writing the file
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]