[
https://issues.apache.org/jira/browse/SAMZA-185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951600#comment-13951600
]
Yan Fang commented on SAMZA-185:
--------------------------------
It happends all the time. I compared the two logs (one is working version and
another one is not-working version).
Not-working one:
{code}
14:17:23.015 [DEBUG] [TestEventLogger] 6166 [ThreadJob] INFO
org.apache.samza.system.kafka.GetOffset - Checking if auto.offset.reset is
defined for topic input
14:17:23.026 [DEBUG] [TestEventLogger] 6177 [ThreadJob] INFO
org.apache.samza.system.kafka.GetOffset - Got reset of type largest.
14:17:23.151 [DEBUG] [TestEventLogger] 6303 [ThreadJob] INFO
org.apache.samza.system.kafka.BrokerProxy - Starting BrokerProxy for
localhost:56073
14:17:23.171 [DEBUG] [TestEventLogger] 6322 [ThreadJob] INFO
org.apache.samza.container.SamzaContainer - Entering run loop.
14:17:23.372 [DEBUG] [TestEventLogger] 6523 [ThreadJob] INFO
org.apache.samza.system.kafka.KafkaSystemProducer - Creating a new producer for
system kafka.
14:22:23.336 [DEBUG] [TestEventLogger]
14:22:23.336 [DEBUG] [TestEventLogger]
org.apache.samza.test.integration.TestStatefulTask > testShouldStartAndRestore
FAILED
14:22:23.336 [DEBUG] [TestEventLogger] java.lang.AssertionError: Timed out
of waiting for message rather than received one.
{code}
working one:
{code}
14:43:30.825 [DEBUG] [TestEventLogger] 5784 [ThreadJob] INFO
org.apache.samza.container.SamzaContainer - Entering run loop.
14:43:30.828 [DEBUG] [TestEventLogger] 5789 [SAMZA-BROKER-PROXY] INFO
org.apache.samza.system.kafka.BrokerProxy - Starting thread for BrokerProxy
14:43:30.913 [DEBUG] [TestEventLogger] 5871 [ThreadJob] INFO
org.apache.samza.system.kafka.KafkaSystemProducer - Creating a new producer for
system kafka-state.
14:43:30.928 [DEBUG] [TestEventLogger] 5884 [ThreadJob] INFO
org.apache.samza.system.kafka.KafkaSystemProducer - Creating a new producer for
system kafka.
14:43:30.984 [DEBUG] [TestEventLogger] TestTask.process(): 1
14:43:31.077 [DEBUG] [TestEventLogger]
14:43:31.078 [DEBUG] [TestEventLogger]
org.apache.samza.test.integration.TestStatefulTask > testShouldStartAndRestore
STANDARD_OUT
14:43:31.078 [DEBUG] [TestEventLogger] 2014-03-28 14:43:31 ClientUtils$
[INFO] Fetching metadata from broker id:0,host:localhost,port:35412 with
correlation id 0 for 1 topic(s) Set(mystore)
{code}
The not-working one missed this line:
{code}
14:43:30.828 [DEBUG] [TestEventLogger] 5789 [SAMZA-BROKER-PROXY] INFO
org.apache.samza.system.kafka.BrokerProxy - Starting thread for BrokerProxy
{code}
Is this the reason?
> Upgrade Samza to Kafka 0.8.1
> ----------------------------
>
> Key: SAMZA-185
> URL: https://issues.apache.org/jira/browse/SAMZA-185
> Project: Samza
> Issue Type: Bug
> Components: build
> Affects Versions: 0.7.0
> Reporter: Chris Riccomini
> Labels: easyfix
> Attachments: SAMZA-185.1.patch, SAMZA-185.patch
>
>
> We should upgrade Kafka to 0.8.1. This involves:
> 1. Switch to using Kafka's maven dependencies
> (http://repo.maven.apache.org/maven2/org/apache//kafka/kafka_2.10/0.8.1/)
> instead of checking in JARs.
> 2. Upgrade build.gradle and gradle dependency versions to depend on 0.8.1.
> 3. Update index.md in docs to no longer say "It depends on a snapshot version
> of Kafka that will not officially be released for a few months."
--
This message was sent by Atlassian JIRA
(v6.2#6252)