[JAVA-4413] Fix FlatMapObservable test failures Created: 22/Nov/21  Updated: 28/Oct/23  Resolved: 14/Feb/22

Status: Closed
Project: Java Driver
Component/s: Scala
Affects Version/s: None
Fix Version/s: 4.6.0

Type: Improvement Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The test is now disabled. The task here is to figure out why it's failing, fix it, and re-enable.

[2021/11/21 00:58:34.780] FAILURE: org.scalatest.exceptions.TestFailedDueToTimeoutException: The code passed to eventually never returned normally. Attempted 1 times over 166.95292999999998 milliseconds. Last failure message: 0 did not equal 1 0. (org.scalatest.exceptions.TestFailedDueToTimeoutException)
[2021/11/21 00:58:34.780] org.scalatest.exceptions.TestFailedDueToTimeoutException: The code passed to eventually never returned normally. Attempted 1 times over 166.95292999999998 milliseconds. Last failure message: 0 did not equal 1 0.



 Comments   
Comment by Githook User [ 14/Feb/22 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Reenable FlatMapObservableTest

JAVA-4413
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5a302dbf8beeee01746b3450ce72805a1edea6f5

Comment by Ross Lawley [ 28/Jan/22 ]

Also seen:

FAILURE: reactor.core.Exceptions$BubblingException: java.lang.IllegalStateException: Unexpected state in FlatMapObservable `onComplete` handler: WaitingOnChild(org.mongodb.scala.ObservableImplicits$BoxedSubscription@40ef0af8) (reactor.core.Exceptions$BubblingException) [2022/01/28 11:03:17.925] reactor.core.Exceptions$BubblingException: java.lang.IllegalStateException: Unexpected state in FlatMapObservable `onComplete` handler: WaitingOnChild(org.mongodb.scala.ObservableImplicits$BoxedSubscription@40ef0af8) 

In: org.mongodb.scala.documentation.DocumentationTransactionsExampleSpec.The_Scala_driver_should_be_able_to_commit_a_transaction=fail

Looks to be a race - so changing to bug.

Comment by Githook User [ 22/Nov/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Disable FlatMapObservableTest that is intermittently failing

The failure will be investigated in JAVA-4413
Branch: 4.4.x
https://github.com/mongodb/mongo-java-driver/commit/d8d1e5d90b7034db640600f57c403ff84f9133d9

Comment by Githook User [ 22/Nov/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Disable FlatMapObservableTest that is intermittently failing

The failure will be investigated in JAVA-4413
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/4139b70bddfd05142857220239eaa5201dfc2659

Generated at Thu Feb 08 09:02:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.