Projects tigase _server tigase-mongodb Issues #34
Update MongoDB driver (#34)
Andrzej Wójcik (Tigase) opened 4 years ago

We are currently using MongoDB driver 3.5.0 which is compatible with MongoDB up to version 3.4. MongoDB has released already a few minor point versions since 3.4 and a few major versions - the current version is 5.0 (after 3.6, 4.0, 4.2 and 4.4). We should update MongoDB driver and adjust used API to new version to support newer MongoDB versions.

  • Wojciech Kapcia (Tigase) commented 2 years ago

    @andrzej.wojcik what's the estimate time of the adjustments? Would those be backward-compabitle?

  • Andrzej Wójcik (Tigase) commented 2 years ago

    I do not have the estimates as I do not actively track changes in MongoDB. Looking at https://www.mongodb.com/docs/drivers/java/sync/current/compatibility/ the support could/should be backward compatible.

  • Andrzej Wójcik (Tigase) commented 2 years ago

    I've updated MongoDB driver but it requires add uuidrepresentation parameter to work. For old installations it should be java_legacy (if I'm correct), while for new installations it should be set to standard.

  • Andrzej Wójcik (Tigase) commented 2 years ago

    There was a bug in -dist module responsible for packaging. Due to changed MongoDB client maven package id, it was not included in the final Tigase XMPP Server distribution packages. Subsequent runs of TTS-NG still failed as MongoDB driver was missing, even though it was included.

    @wojtek Any idea why this could happen?

  • Wojciech Kapcia (Tigase) commented 2 years ago

    After some digging in:

    DependencyManager.createBeanConfig(): Cannot create bean config 'instance', type=tigase.mongodb.MongoDataSource. Bean requires unknown class com/mongodb/MongoException
    

    Currently mongodb library uses additional dependencies and those transitive dependencies have to be included in -dist package as well. Above class is in org.mongodb:mongodb-driver-core

    Adding those should fix the issue.

  • Wojciech Kapcia (Tigase) batch edited 12 months ago
    Name Previous Value Current Value
    Iterations
    empty
    tigase-server-8.4.0
issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
tigase-server-8.4.0
Iterations
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/tigase-mongodb#34
Please wait...
Page is in error, reload to recover