[
https://issues.apache.org/jira/browse/FLINK-10609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16656661#comment-16656661
]
Chesnay Schepler commented on FLINK-10609:
------------------------------------------
The 1.6 failure (elasticsearch) doesn't appear to be causing the build failure
(at least locally for me). it's not a new issue and existed at least since 1.4.
The 1.5 issue (hbase) is more concerning. For one the test code is pretty bad
since it casts to log4j loggers to set some log levels, which both (as seen
here) can cause stability issues and also seems simply unnecessary. That said,
the actual logger instance is a {{SLF4JLocationAwareLog }}from from
{{jcl-over-slf4j}}, but this dependency doesn't appear in the dependency tree
of {{flink-hbase}}. So this is pretty weird.
> Source distribution tests fails with logging ClassCastException
> ---------------------------------------------------------------
>
> Key: FLINK-10609
> URL: https://issues.apache.org/jira/browse/FLINK-10609
> Project: Flink
> Issue Type: Bug
> Components: Build System, Tests
> Affects Versions: 1.5.5, 1.6.2
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Fix For: 1.5.5, 1.6.2
>
>
> [~fhueske] and [~dawidwys] have reported a test error while running the tests
> for the source distribution of {{1.5.5-rc1}} and {{1.6.2-rc1}}.
> 1.6:
> {code:java}
> ERROR StatusLogger Unable to create class
> org.apache.flink.streaming.connectors.elasticsearch5.shaded.org.apache.logging.slf4j.SLF4JLoggerContextFactory
> specified in
> file:/home/fhueske/Downloads/flink-1.6.2/flink-connectors/flink-connector-elasticsearch5/target/classes/META-INF/log4j-provider.properties
> java.lang.ClassNotFoundException:
> org.apache.flink.streaming.connectors.elasticsearch5.shaded.org.apache.logging.slf4j.SLF4JLoggerContextFactory
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at
> org.apache.logging.log4j.spi.Provider.loadLoggerContextFactory(Provider.java:96)
> at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:91)
> at
> org.elasticsearch.common.logging.ESLoggerFactory.getLogger(ESLoggerFactory.java:49)
> at org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:105)
> at org.elasticsearch.node.Node.<init>(Node.java:237)
> at
> org.apache.flink.streaming.connectors.elasticsearch.EmbeddedElasticsearchNodeEnvironmentImpl$PluginNode.<init>(EmbeddedElasticsearchNodeEnvironmentImpl.java:78)
> at
> org.apache.flink.streaming.connectors.elasticsearch.EmbeddedElasticsearchNodeEnvironmentImpl.start(EmbeddedElasticsearchNodeEnvironmentImpl.java:54)
> at
> org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkTestBase.prepare(ElasticsearchSinkTestBase.java:72)
>
> {code}
> 1.5:
> {code:java}
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m;
> support was removed in 8.0
> Running org.apache.flink.addons.hbase.HBaseConnectorITCase
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.557 sec <<<
> FAILURE! - in org.apache.flink.addons.hbase.HBaseConnectorITCase
> org.apache.flink.addons.hbase.HBaseConnectorITCase Time elapsed: 0.556 sec
> <<< ERROR!
> java.lang.ClassCastException:
> org.apache.commons.logging.impl.SLF4JLocationAwareLog cannot be cast to
> org.apache.commons.logging.impl.Log4JLogger
> org.apache.flink.addons.hbase.HBaseConnectorITCase Time elapsed: 0.557 sec
> <<< ERROR!
> java.lang.NullPointerException{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)