Skip to content

Commit

Permalink
apacheGH-39113: [Integration][Flight][Java] Fix occasional failure st…
Browse files Browse the repository at this point in the history
…arting Java server (apache#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: apache#39113

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
  • Loading branch information
pitrou authored Dec 6, 2023
1 parent 92723f3 commit 9fdcc60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/archery/archery/integration/tester_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def load_version_from_pom():
"-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()
Expand Down

0 comments on commit 9fdcc60

Please sign in to comment.