Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File storage backend update (MongoDB 4.4 EOL) #1950

Open
xgo-work opened this issue Apr 4, 2024 · 2 comments
Open

File storage backend update (MongoDB 4.4 EOL) #1950

xgo-work opened this issue Apr 4, 2024 · 2 comments

Comments

@xgo-work
Copy link
Contributor

xgo-work commented Apr 4, 2024

File storage using Jackrabbit Oak implementation of JCR uses a MongoDB as backend storage.

  • In the current setup the supported version of MongoDB is 4.4 which has reached EOL in February 2024.
  • Moreover MongoDB is disregarded for production use (ref ?).

Currently used
https://jackrabbit.apache.org/oak/docs/nodestore/document/mongo-document-store.html

@xgo-work
Copy link
Contributor Author

xgo-work commented Apr 4, 2024

A possibility would be to use the RDB implementation
https://jackrabbit.apache.org/oak/docs/nodestore/document/rdb-document-store.html
Which supports many relation databases and has been tested with PSQL

This would harmonize the infrastructure having only postgres instances for the data.

The current implementation initiates the connection this way

DocumentNodeStore nodeStore = newMongoDocumentNodeStoreBuilder()
        .setLeaseCheckMode(LeaseCheckMode.DISABLED)
        .setMongoDB("mongodb://" + hostPort + "/?readConcernLevel=majority", dbName, 0)
        .build();

The new one would be very similar

DocumentNodeStore nodeStore = newRDBDocumentNodeStoreBuilder()
        .setLeaseCheckMode(LeaseCheckMode.DISABLED)
        .setRDBConnection(/* TODO figure out DataSource*/);// connexion info to DB
        .build();

Would be worth giving a try

@xgo-work
Copy link
Contributor Author

xgo-work commented Apr 4, 2024

DataSource might be obtained through PGSimpleDataSource in the psql package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant