4paradigm / 4paradigm/OpenMLDB

openmldb batch tests fails to bootstrap on mac

Open
#3,407 1 comment 0 reactions 1 assignee Claimed by @aceforeverd View on GitHub
batch-engine bug build
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
1

Description

https://github.com/aceforeverd/fedb/actions/runs/5693624689/job/15433110146

```
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ openmldb-batch ---
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
Discovery starting.
Discovery completed in 968 milliseconds.
Run starting. Expected test count is: 97
TestDate:
org.apache.spark.util.Utils.logWarning(Logging.scala:69) - WARN: Your hostname, Mac-1690546465826.local resolves to a loopback address: 127.0.0.1; using 10.79.15.250 instead (on interface en0)
org.apache.spark.util.Utils.logWarning(Logging.scala:69) - WARN: Set SPARK_LOCAL_IP if you need to bind to another address
org.apache.hadoop.util.NativeCodeLoader.(NativeCodeLoader.java:60) - WARN: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ERROR: something wrong with flag 'logtostderr' in file 'src/logging.cc'. One possibility: file 'src/logging.cc' is being linked both statically and dynamically into this executable.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for openmldb 0.7.0-SNAPSHOT:
[INFO]
[INFO] openmldb ........................................... SUCCESS [ 0.558 s]
[INFO] hybridse-proto ..................................... SUCCESS [ 1.169 s]
[INFO] hybridse-native .................................... SUCCESS [ 0.199 s]
[INFO] hybridse-sdk ....................................... SUCCESS [ 11.834 s]
[INFO] openmldb-native .................................... SUCCESS [ 0.124 s]
[INFO] openmldb-jdbc ...................................... SUCCESS [ 27.822 s]
[INFO] openmldb-common .................................... SUCCESS [ 4.800 s]
[INFO] openmldb-synctool .................................. SUCCESS [ 0.644 s]
[INFO] openmldb-spark-connector ........................... SUCCESS [ 39.203 s]
[INFO] openmldb-batch ..................................... FAILURE [02:25 min]
[INFO] openmldb-batchjob .................................. SKIPPED
[INFO] openmldb-taskmanager ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:53 min
[INFO] Finished at: 2023-07-28T12:52:30Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project openmldb-batch: There are test failures -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Error:
Error: After correcting the problems, you can resume the build with the command
Error: mvn -rf :openmldb-batch
Error: Process completed with exit code 1.
```

shared library has runtime issue with gflags

Contributor guide

Open the contributing guide

Research direction

The issue is about a macOS bootstrap failure in the openmldb-batch module's tests, with an error related to gflags and a shared library. Look at the GitHub Actions log linked in the issue to see the full error. The failing module is openmldb-batch, and the test uses scalatest-maven-plugin. Investigate the gflags library linking in the native components (likely in openmldb-native or hybridse-native). Check the build configuration for macOS, especially around the 'logtostderr' flag and shared library dependencies. Running the tests locally on macOS with debug flags may help reproduce the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
hadoop, java, scala, spark
Domain
build-system, databases, machine-learning, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.