GithubHelp home page GithubHelp logo

Comments (6)

miguno avatar miguno commented on May 26, 2024

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.

daveroberts avatar daveroberts commented on May 26, 2024

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.

miguno avatar miguno commented on May 26, 2024

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.

daveroberts avatar daveroberts commented on May 26, 2024

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.

daveroberts avatar daveroberts commented on May 26, 2024

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.

daveroberts avatar daveroberts commented on May 26, 2024

I am unable to test this. If someone else is having the issue, feel free to reopen.

from kafka-storm-starter.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.