|
| 1 | +--- |
| 2 | +title: Release notes 3.5.10 |
| 3 | +tags: [release_notes] |
| 4 | +published: true |
| 5 | +keywords: release notes, announcements, changelog |
| 6 | +summary: "Version 3.5.10 of Eclipse Ditto, released on 18.06.2024" |
| 7 | +permalink: release_notes_3510.html |
| 8 | +--- |
| 9 | + |
| 10 | +This is a bugfix release, no new features since [3.5.9](release_notes_359.html) were added. |
| 11 | + |
| 12 | +## Changelog |
| 13 | + |
| 14 | +Compared to the latest release [3.5.9](release_notes_359.html), the following changes and bugfixes were added. |
| 15 | + |
| 16 | +### Bugfixes |
| 17 | + |
| 18 | +This is a complete list of the |
| 19 | +[merged pull requests](https://github.com/eclipse-ditto/ditto/pulls?q=is%3Apr+milestone%3A3.5.10). |
| 20 | + |
| 21 | +#### Updating used `pekko-persistence-mongo` and mongo driver to latest versions |
| 22 | + |
| 23 | +The used Pekko persistence plugin [pekko-persistence-mongo](https://github.com/scullxbones/pekko-persistence-mongo) provides |
| 24 | +in its newest version `1.2.0` more control of the MongoDB `writeConcern` to use. |
| 25 | +Previously, e.g. the configured [Acknowledged](https://github.com/scullxbones/pekko-persistence-mongo?tab=readme-ov-file#writeconcern) |
| 26 | +write concern caused a different behavior than in MongoDB 5 when using Ditto with MongoDB 6. |
| 27 | + |
| 28 | +Previously, the configured `Acknowledged` writeConcern only required the MongoDB primary to acknowledge the write operation. |
| 29 | +With MongoDB 6, this behavior seem to have changed to use the configured "default write concern" of the database, which by |
| 30 | +default is `"majority"`. |
| 31 | + |
| 32 | +Ditto defaults to this `Acknowledged` writeConcern, so when updating from MongoDB 5 to 6 an increase in insert performance |
| 33 | +is probable, although the writes are then performed with higher consistency guarantees. |
| 34 | + |
| 35 | +Ditto 3.5.10 provides updates the `pekko-persistence-mongo` to version `1.2.0` and provides with this update the ability |
| 36 | +to also configure 3 additional writeConcerns: |
| 37 | +* `W1` - requires that the MongoDB primary acknowledges the write |
| 38 | +* `W2` - requires that the MongoDB primary and an additional secondary acknowledges the write |
| 39 | +* `W3` - requires that the MongoDB primary and two additional secondaries acknowledges the write |
| 40 | + |
| 41 | +Where `W1` should provide the behavior as `Acknowledged` before: only requiring the acknowledgement from the MongoDB primary. |
| 42 | + |
| 43 | +As part of this update, also the MongoDB driver was updated to version `5.1.1`. |
0 commit comments