Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional test failure in Event Processor #524

Closed
schbetsy opened this issue Aug 18, 2016 · 5 comments
Closed

Occasional test failure in Event Processor #524

schbetsy opened this issue Aug 18, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@schbetsy
Copy link
Contributor

schbetsy commented Aug 18, 2016

[info] Event processor
[info] - must process upload start message from event stream *** FAILED ***
[info]   java.lang.AssertionError: timeout (3 seconds) waiting for 1 messages on DebugFilter(Some(akka://test-system/user/$a),Left(Upload started for submission 12345-2017-1),true)
[info]   at akka.testkit.EventFilter.intercept(TestEventListener.scala:114)
[info]   at hmda.api.processing.LocalHmdaEventProcessorSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(LocalHmdaEventProcessorSpec.scala:37)
[info]   at hmda.api.processing.LocalHmdaEventProcessorSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply(LocalHmdaEventProcessorSpec.scala:35)
[info]   at hmda.api.processing.LocalHmdaEventProcessorSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply(LocalHmdaEventProcessorSpec.scala:35)
[info]   at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
[info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
[info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
[info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
[info]   at org.scalatest.WordSpecLike$$anon$1.apply(WordSpecLike.scala:1078)
[info]   at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
[info]   ...

Found by Travis. link.

@lgdean
Copy link
Contributor

lgdean commented Aug 19, 2016

I've been able to reproduce a similar (but opposite) failure locally, too (but not predictably). I've seen it happen sometimes when running just that class in IntelliJ, which is faster than doing all of sbt test, at least.

My failure looks like:

[info] - must process parse completed message from event stream *** FAILED ***
[info]   java.lang.AssertionError: received 1 excess messages on DebugFilter(Some(akka://test-system/user/$a),Left(Parsing completed for 12345-2017-1),true)
[info]   at akka.testkit.EventFilter.intercept(TestEventListener.scala:116)
[info]   at hmda.api.processing.LocalHmdaEventProcessorSpec$$anonfun$1$$anonfun$apply$mcV$sp$5.apply$mcV$sp(LocalHmdaEventProcessorSpec.scala:51)
[info]   at hmda.api.processing.LocalHmdaEventProcessorSpec$$anonfun$1$$anonfun$apply$mcV$sp$5.apply(LocalHmdaEventProcessorSpec.scala:49)
[info]   at hmda.api.processing.LocalHmdaEventProcessorSpec$$anonfun$1$$anonfun$apply$mcV$sp$5.apply(LocalHmdaEventProcessorSpec.scala:49)
[info]   at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
[info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
[info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
[info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
[info]   at org.scalatest.WordSpecLike$$anon$1.apply(WordSpecLike.scala:1078)
[info]   at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
[info]   ...

On the command line with sbt test I noticed that, when it passes, this line appears in the console output, as the last of 10 debug lines:
[DEBUG] [08/18/2016 15:54:11.660] [test-system-akka.actor.default-dispatcher-6] [akka://test-system/user/$a] Parsing completed for 12345-2017-1
But when the test fails, that line does not appear. I found it surprising, because the failure message makes it sound like that debug message is appearing too often. (But maybe it means that some extra message is sometimes getting filtered and counted, but other times getting printed? I don't know the details well enough to do more than guess.)

@jmarin
Copy link
Contributor

jmarin commented Aug 19, 2016

I've kicked the build again in Travis and it passes. Only explanation I have at this point in time is that the system got busy and we hit the 3 second timeout for this response. I don't have an answer for IntelliJ local run failures, it's something I haven't seen before since I never run tests with the IDE.

@lgdean
Copy link
Contributor

lgdean commented Aug 19, 2016

It's not just in IntelliJ: I noticed it first in sbt test and then ran it in the IDE as a convenient way to run just that class, rather than the whole thing.

@jmarin jmarin added this to the Sprint 13 milestone Aug 19, 2016
@jmarin jmarin added the bug label Aug 19, 2016
@kgudel
Copy link
Contributor

kgudel commented Aug 19, 2016

I have tried to reproduce this without success and so I'm closing the issue.

@kgudel kgudel closed this as completed Aug 19, 2016
@lgdean
Copy link
Contributor

lgdean commented Aug 24, 2016

I'm still getting the failure from the comment from time to time (at least once a day, and twice so far today), FWIW.

Also, it sounds like an issue similar to the original (but for upload complete rather than start) happened in #532.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants