Comments (6)
This may happen if the performance of your VM is not fast enough -- Storm by default has a test timeout of 5 secs (see the AssertionError
above), and whenever a test exceeds this limit it considers the test to have failed.
This timeout is configurable though, so you may want to increase the value when running the tests in a VM. See STORM_TEST_TIMEOUT_MS
at https://github.com/apache/storm/blob/master/DEVELOPER.md#build-the-code-and-run-the-tests.
from kafka-storm-starter.
Thanks, I set this to 20 seconds and it worked! I encountered another failure:
[info] Feature: AvroDecoderBolt[T]
[info] Scenario: User creates a Storm topology that uses AvroDecoderBolt *** FAILED ***
[info] SynchronizedQueue() was not equal to List({"username": "ANY_USER_1", "text": "ANY_TEXT_1", "timestamp": 1443029722}, {"username": "ANY_USER_2", "text": "ANY_TEXT_2", "timestamp": 0}, {"username": "ANY_USER_3", "text": "ANY_TEXT_3", "timestamp": 1234}) (KafkaStormSpec.scala:259)
[info] Given a ZooKeeper instance
[info] And a Kafka broker instance
[info] And a Storm topology that uses AvroDecoderBolt and that reads tweets from topic testing-input} and writes them as-is to topic testing-output
[info] And some tweets
[info] And a synchronous Kafka producer app that writes to the topic testing-input
[info] And a single-threaded Kafka consumer app that reads from topic testing-output and Avro-decodes the incoming data
[info] And a Storm topology configuration that registers an Avro Kryo decorator for Tweet
[info] When I run the Storm topology
[info] And I Avro-encode the tweets and use the Kafka producer app to sent them to Kafka
[info] Synchronously sending Tweet {"username": "ANY_USER_1", "text": "ANY_TEXT_1", "timestamp": 1443029722} to topic Some(testing-input)
[info] Synchronously sending Tweet {"username": "ANY_USER_2", "text": "ANY_TEXT_2", "timestamp": 0} to topic Some(testing-input)
[info] Synchronously sending Tweet {"username": "ANY_USER_3", "text": "ANY_TEXT_3", "timestamp": 1234} to topic Some(testing-input)
[info] Then the Kafka consumer app should receive the original tweets from the Storm topology
from kafka-storm-starter.
Hmm, I have seen this before I think (quite a while back). IIRC it was related to timing problems similar to the one you mentioned initially. Maybe STORM_TEST_TIMEOUT_MS
alone is not sufficient. Is the error/test failure consistent across test runs? And can you try running the tests outside of a VM?
from kafka-storm-starter.
The failure was consistent across three runs. I will try running the tests outside of a VM at a later time.
from kafka-storm-starter.
This is in the scenario code and may help:
// Note: Should test messages arrive out-of-order, we may want to enforce a parallelism of 1 for this bolt.
builder.setBolt(decoderBoltId, decoderBolt).globalGrouping(kafkaSpoutId)
from kafka-storm-starter.
I am unable to test this. If someone else is having the issue, feel free to reopen.
from kafka-storm-starter.
Related Issues (12)
- KafkaStormSpec Fails on AvroScheme[T] and AvroDecoderBolt[T] features HOT 16
- Failed to execute goal on project streams-examples HOT 1
- Failed to run "sbt test" HOT 3
- java.lang.UnsatisfiedLinkError
- org.eclipse.aether.resolution.ArtifactResolutionException:
- Weird NoRouteToHostException trying to run the tests HOT 2
- KafkaSparkStreamingSpec testsuite does not pass. HOT 2
- Storm UI showing improper values for Kafka Trident HOT 6
- KafkaSparkStreamingSpec.scala: NotSerializableException: org.apache.commons.pool2.impl.GenericObjectPool HOT 4
- we have setup all the tunning params for kafka and strom still getting very high latency HOT 1
- User creates a Storm topology that uses AvroScheme in Kafka spout *** FAILED *** HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka-storm-starter.