gravitino
gravitino copied to clipboard
[Bug report] Build: Unable to build gravitino in Linux environment due to JAVA problem
Version
main branch
Describe what's wrong
When I use "./ gradlew build" to build environment. There are some failed test. My OS is Ubuntu 22.04.4 and openJDK is 11.0.22.
By the way, the command "./gradlew build -x test" has all successful test.
Error message and/or stacktrace
How to reproduce
Please see Above. Thanks
Additional context
OS:Linux gravitino 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux JAVA: openjdk 11.0.22 2024-01-16 OpenJDK Runtime Environment (build 11.0.22+7-post-Ubuntu-0ubuntu222.04.1) OpenJDK 64-Bit Server VM (build 11.0.22+7-post-Ubuntu-0ubuntu222.04.1, mixed mode, sharing)
hi @rich7420 Thanks you for report this issue. @danhuawang Please look bug?
Could you please follow the how-to-test doc and have a try?
I can't reproduce it locally with Linux Linux ubuntu-intel 6.7.10-orbstack-00140-g04c64cb35a2e #1 04:39:53 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
, maybe I need ubuntu 22.0.4
image.
Could you please follow the how-to-test doc and have a try?
I've tried
./gradlew test -PskipITs
and
./gradlew build -x test
In the duplicate Virtual Box, There is their message.
./gradlew test -PskipITs
./gradlew build -x test
It seems like Junit has some issues?
This seems to be introduced by https://github.com/datastrato/gravitino/issues/3197, I tried but can't reproduce it locally in the orback virtual machine.
I don't see any valuable information in the above description. How do you know that it is due to #3197?
The error stacks contain class com.datastrato.gravitino.integration.test.util.CloseContainerExtension
. The final outcome may not be entirely accurate, all I can say is that it's just my guess.
@rich7420 I have reproduced this issue locally, possibly because you did not start the docker server before working on IT.
You can try pulling PR #3538 and running it again to see a clearer error message.