[JAVA-4214] Inconsistency between sync and reactive implementation of GridFSBucket.delete Created: 30/Jun/21  Updated: 30/Mar/22

Status: Backlog
Project: Java Driver
Component/s: GridFS, Reactive Streams
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The GridFS spec says of the delete method for GridFS files:

If there is no such file listed in the files collection, drivers MUST raise an error. Drivers MAY attempt to delete any orphaned chunks with files_id equal to id before raising the error.

The synchronous implementation does attempt to delete orphaned chunks, while the reactive implementation does not. It's not clear whether that decision was intentional.

This causes the reactive driver to fail the new "delete when files entry does not exist and there are orphaned chunks" unified test, which asserts this behavior.


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