You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2023/12/06 17:29:16 UTC

(arrow) branch main updated: GH-39113: [Integration][Flight][Java] Fix occasional failure starting Java server (#39115)

This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9fdcc60f52 GH-39113: [Integration][Flight][Java] Fix occasional failure starting Java server (#39115)
9fdcc60f52 is described below

commit 9fdcc60f52a102ea397dd58b50b393f0b79fb284
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Wed Dec 6 18:29:09 2023 +0100

    GH-39113: [Integration][Flight][Java] Fix occasional failure starting Java server (#39115)
    
    ### Rationale for this change
    
    The "perfdata" feature in the JVM can sometimes cause spurious warnings or failures trying to start the Integration Flight server:
    ```
    ################# FAILURES #################
    FAILED TEST: decimal Java producing,  Java consuming
    <class 'RuntimeError'>: Flight-Java server did not start properly, stdout:
    Warning: [0.002s][warning][perf,memops] Cannot use file /tmp/hsperfdata_root/55221 because it is locked by another process (errno = 11)
    
    stderr:
    ```
    
    ### What changes are included in this PR?
    
    Disable the perfdata feature when starting the JVM for integration tests.
    
    ### Are these changes tested?
    
    By construction, yes.
    
    ### Are there any user-facing changes?
    
    No.
    * Closes: #39113
    
    Authored-by: Antoine Pitrou <an...@python.org>
    Signed-off-by: Antoine Pitrou <an...@python.org>
---
 dev/archery/archery/integration/tester_java.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev/archery/archery/integration/tester_java.py b/dev/archery/archery/integration/tester_java.py
index d71479986c..6cd1afa64f 100644
--- a/dev/archery/archery/integration/tester_java.py
+++ b/dev/archery/archery/integration/tester_java.py
@@ -41,6 +41,8 @@ _JAVA_OPTS = [
     "-Dio.netty.tryReflectionSetAccessible=true",
     "-Darrow.struct.conflict.policy=CONFLICT_APPEND",
     "--add-opens=java.base/java.nio=ALL-UNNAMED",
+    # GH-39113: avoid failures accessing files in `/tmp/hsperfdata_...`
+    "-XX:-UsePerfData",
 ]
 
 _arrow_version = load_version_from_pom()