Uploaded image for project: 'Hibernate OGM'
  1. OGM-1448

Pass WriteConcern and ReadConcern when running executeBackendQuery and executeBackendUpdateQuery in MongoDB

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 5.1.0.CR1
    • Components: mongodb
    • Labels:
      None

      Description

      In MongoDBDilacet we get the collection without passing the Writeconcern:

      provider.getDatabase().getCollection( collectionName )

      instead of

      		WriteConcern writeConcern = getWriteConcern( tupleContext );
      		provider.getDatabase().getCollection( collectionName ).withWriteConcern( writeConcern );
      

      Same thing for ReadConcern.

      I've spotted this case when we are running native queries but we should check if there are other places where it's needed

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: