Skip to content

Deletes and updates to capped collections fail silently [DATAMONGO-561] #1464

@spring-projects-issues

Description

@spring-projects-issues

Tobias Trelle opened DATAMONGO-561 and commented

MongoDB does not support deletes and updates of documents in a capped collection. Using repository methods like delete(...) and save(...) should throw an exception when operating on a domain object mapped to a capped collection. Right now these methods do not fail, but they also don't delete or update anything (I provided a test case for that, see Reference URL)


Affects: 1.1 GA

Reference URL: https://github.com/ttrelle/spring-data-examples/blob/master/springdata-mongodb/src/test/java/mongodb/CappedCollectionManipulationTest.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: repositoryRepositories abstractionstatus: declinedA suggestion or change that we don't feel we should currently applytype: bugA general bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions