suztomo edited a comment on pull request #13073:
URL: https://github.com/apache/beam/pull/13073#issuecomment-721920511
Interesting. Let me see.
```
java.lang.NoClassDefFoundError: org/apache/logging/log4j/util/ReflectionUtil
at
org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:42)
at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48)
at
org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
at org.apache.hive.hcatalog.common.HCatUtil.<clinit>(HCatUtil.java:83)
at
org.apache.beam.sdk.io.hcatalog.test.EmbeddedMetastoreService.<init>(EmbeddedMetastoreService.java:50)
at
org.apache.beam.sdk.io.hcatalog.HCatalogBeamSchemaTest.setupEmbeddedMetastoreService(HCatalogBeamSchemaTest.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
```
https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/14470/testReport/junit/org.apache.beam.sdk.io.hcatalog/HCatalogBeamSchemaTest/classMethod/
# Reproduce Problem
The command below reproduces the problem. It's strange that Gradle marks it
successful:
```
./gradlew -p ./sdks/java/io/hcatalog test
...
> Task :sdks:java:io:hcatalog:test
org.apache.beam.sdk.io.hcatalog.HCatalogIOTest > classMethod FAILED
java.lang.NoClassDefFoundError at HCatalogIOTest.java:88
Caused by: java.lang.ClassNotFoundException at HCatalogIOTest.java:88
org.apache.beam.sdk.io.hcatalog.HCatalogBeamSchemaTest > classMethod FAILED
java.lang.NoClassDefFoundError at HCatalogBeamSchemaTest.java:52
org.apache.beam.sdk.io.hcatalog.SchemaUtilsTest >
testParameterizedTypesToBeamTypes FAILED
java.lang.NoClassDefFoundError at SchemaUtilsTest.java:43
3 tests completed, 3 failed
There were failing tests. See the report at:
file:///usr/local/google/home/suztomo/beam/sdks/java/io/hcatalog/build/reports/tests/test/index.html
Deprecated Gradle features were used in this build, making it incompatible
with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2m 52s
49 actionable tasks: 49 executed
suztomo@suztomo:~/beam$
```
Found ignoreFailures in the build.gradle:
```
test {
// TODO: Get tests to run. Known issues:
// * calcite-avatica bundles w/o repackaging Jackson (CALCITE-1110)
// * hive-exec bundles w/o repackaging Guava (HIVE-13690)
ignoreFailures true
}
```
Turning it off.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]