gravitino icon indicating copy to clipboard operation
gravitino copied to clipboard

[Bug report] Build: Unable to build gravitino in Linux environment due to JAVA problem

Open rich7420 opened this issue 9 months ago • 8 comments

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. image

Error message and/or stacktrace

image image image

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)

rich7420 avatar May 11 '24 06:05 rich7420

hi @rich7420 Thanks you for report this issue. @danhuawang Please look bug?

xunliu avatar May 11 '24 06:05 xunliu

Could you please follow the how-to-test doc and have a try?

mchades avatar May 11 '24 06:05 mchades

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.

yuqi1129 avatar May 11 '24 07:05 yuqi1129

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 image

./gradlew build -x test image

rich7420 avatar May 12 '24 04:05 rich7420

It seems like Junit has some issues?

jerryshao avatar May 13 '24 06:05 jerryshao

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.

yuqi1129 avatar May 13 '24 06:05 yuqi1129

I don't see any valuable information in the above description. How do you know that it is due to #3197?

jerryshao avatar May 13 '24 06:05 jerryshao

image

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.

yuqi1129 avatar May 13 '24 06:05 yuqi1129

@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.

mchades avatar May 23 '24 13:05 mchades