spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-4002) JavaKafkaStreamSuite.testKafkaStream fails on OSX
Date Thu, 23 Oct 2014 04:14:34 GMT

    [ https://issues.apache.org/jira/browse/SPARK-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180992#comment-14180992
] 

Ryan Williams commented on SPARK-4002:
--------------------------------------

[~jerryshao] cool, a couple of notes:
* If you're still running on Linux it is suspected that you're not going to see this issue
even if you do run {{JavaKafkaStreamSuite}}
* I guess I was confused about whether the problem lay in {{KafkaStreamSuite}} or {{JavaKafkaStreamSuite}};
looking at this again, it is clearly the "Kafka input stream" case in {{KafkaStreamSuite}}
that is failing, in particular on [line 135|https://github.com/apache/spark/blob/c5882c663e054adcd3ecd9f11e91a1929dbc14a3/external/kafka/src/test/scala/org/apache/spark/streaming/kafka/KafkaStreamSuite.scala#L135].
** [Here|https://gist.github.com/ryan-williams/9234a2e69649ad897b06] is the stdout I get about
the failure when running {{mvn test -Dsuites='*KafkaStreamSuite'}}
** [Here|https://gist.github.com/ryan-williams/361a649ae3acb88470a9] is more recent stdout
(with a screengrab) I get about the failure when running {{./dev/run-tests}}.
*** Notice the error is somehow reprinted as coming from {{JavaKafkaStreamSuite}}, hence my
confusion.
** In any case, I'll try to edit this issue to reflect that the problem seems to be coming
from the "Kafka input stream" case of {{KafkaStreamSuite}}.

[~advancedxy] good suggestion! Unfortunately my hostname (as output by the BSD {{hostname}}
utility on my macbook) is {{mbp.local}}, so unless the {{.}} is illegal then I'm not sure
that's the cause of my trouble.

Finally, I'm attaching my unit-tests.log to this issue! It's also [here|https://gist.github.com/ryan-williams/24948fccfeb147683e2c].
Let me know if that tells you anything! I don't know what to look for in there and didn't
see anything that related.

> JavaKafkaStreamSuite.testKafkaStream fails on OSX
> -------------------------------------------------
>
>                 Key: SPARK-4002
>                 URL: https://issues.apache.org/jira/browse/SPARK-4002
>             Project: Spark
>          Issue Type: Bug
>          Components: Streaming
>         Environment: Mac OSX 10.9.5.
>            Reporter: Ryan Williams
>
> [~sowen] mentioned this on spark-dev [here|http://mail-archives.apache.org/mod_mbox/spark-dev/201409.mbox/%3CCAMAsSdJs0fMsdc-K-4orgBhBfz2VvrMM0HFyifEeaL-SpFtPKQ@mail.gmail.com%3E]
and I just reproduced it on {{master}} ([7e63bb4|https://github.com/apache/spark/commit/7e63bb49c526c3f872619ae14e4b5273f4c535e9]).
> The relevant output I get when running {{./dev/run-tests}} is:
> {code}
> [info] KafkaStreamSuite:
> [info] - Kafka input stream
> [info] Test run started
> [info] Test org.apache.spark.streaming.kafka.JavaKafkaStreamSuite.testKafkaStream started
> [error] Test org.apache.spark.streaming.kafka.JavaKafkaStreamSuite.testKafkaStream failed:
junit.framework.AssertionFailedError: expected:<3> but was:<0>
> [error]     at junit.framework.Assert.fail(Assert.java:50)
> [error]     at junit.framework.Assert.failNotEquals(Assert.java:287)
> [error]     at junit.framework.Assert.assertEquals(Assert.java:67)
> [error]     at junit.framework.Assert.assertEquals(Assert.java:199)
> [error]     at junit.framework.Assert.assertEquals(Assert.java:205)
> [error]     at org.apache.spark.streaming.kafka.JavaKafkaStreamSuite.testKafkaStream(JavaKafkaStreamSuite.java:129)
> [error]     ...
> [info] Test run finished: 1 failed, 0 ignored, 1 total, 19.798s
> {code}
> Seems like this test should be {{@Ignore}}'d, or some note about this made on the {{README.md}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message