[JAVA-4487] Use project reactor for Scala Observable implicits Created: 09/Feb/22  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: Major - P3
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-4524 Observable.map calls onComplete after... Closed

 Description   

Summary

Currently, custom observable code is used and this has been shown as both fragile and racy (JAVA-4413).  The reactor project is thoroughly tested and provides all the features required. So update the code to use that directly.

Motivation

Who is the affected end user?

Both driver users and code owners.

How does this affect the end user?

Reduces the amount of code to maintain and reduces the risk of bugs.

How likely is it that this problem or use case will occur?

Reportedly its low

If the problem does occur, what are the consequences and how severe are they?

Main is to reduce risks

Is this issue urgent?

Not urgent but for next release.

Is this ticket required by a downstream team?

N/A

Is this ticket only for tests?

No



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

Author:

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

Message: Scala: Help the compiler for Scala 2.11 and 2.12

JAVA-4487
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/677e99e44443256cbc4a91e146e18b74d26917b1

Comment by Githook User [ 14/Feb/22 ]

Author:

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

Message: Use Project reactor for observable implicit helpers

Reduces the amount of code to maintain and allows
the excellent project reactor handle the heavy lifting.

JAVA-4487
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cb87ca6c80514389e1d878ab8f37efeac09cc0e5

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