Skip to content

Conversation

@FrancoMaxime
Copy link
Member

No description provided.

nseinlet and others added 30 commits October 8, 2025 12:06
The upstream FilesystemSessionStore does not do that.
Retry on OperationalError exception, which we receive on database restart.
Return cursor to pool when reconnecting.
There were concurrency issues in evented mode.
So while I was at it, I added support for threaded mode too.
If the connection to the database fails when
retrying a session operation, we end up
with no cursore, which makes subsequent
session operations fail.

We fix this by ensuring we have cursor
before any operations.
…gument 'max_lifetime'" when autovacuum gets executed.

Signed-off-by: Christoph Fiehe <[email protected]>
It has been implemented.
sbidoul and others added 8 commits October 8, 2025 12:06
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-session_db
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-session_db/
with the parameter "login" in `_make_postgres_uri()` it becomes impossible to log in with the configured database, as it has to have the name "user". This is because of passing the `connection_info` dict as keywords parameter into the function. But because `connection_info_for` called in `setUp()` reads the config file of odoo and there the database user is `db_user` the keyword parameter is discarded and `login` is not set. The `db_`-prefix is removed. So user and password are not applied to the uri/dsn and thus login to the database is not possible, if the database wants those parameters.

When I applied this change in our internal CI of solute.de, everything worked fine afterwards.

This has to be ported to 17.0 and 18.0 as well.
@rousseldenis
Copy link
Contributor

/ocabot migration session_db

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Oct 11, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 11, 2025
39 tasks
{
"name": "Store sessions in DB",
"version": "18.0.1.0.1",
"version": "19.0.1.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FrancoMaxime The better is to reset to 19.0.1.0.0

@sbidoul
Copy link
Member

sbidoul commented Oct 11, 2025

Looks like a passing test suite is not sufficient.
There were a few missing bits to make this work. See #3413

@sbidoul
Copy link
Member

sbidoul commented Oct 11, 2025

I'm going ahead and closing this one in favor of #3413.

@sbidoul sbidoul closed this Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants