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

Invalid configuration for random fresh created database may be used after drop of another one with alias in databases.conf #7555

Closed
AlexPeshkoff opened this issue Apr 24, 2023 · 1 comment

Comments

@AlexPeshkoff
Copy link
Member

Bug applies only to posix super / superclassic.

Database file's ID is used on posix in order to better detect what file is used as database's primary and avoid use of same file as 2 different databases in case of hardlinks. So far so good but in a case when databases are often created/dropped ID plays bad game for us.

ID is also used in config resolution code in order to avoid use of different per-DB configs for same database. When database with particular ID (i.e. inode number) is dropped file is also deleted and inode may be reused. Therefore we may get another database with same ID, which currently causes invalid operation of config code.

@pavel-zotov
Copy link

Bug showed up as 'Missing security context' message that appeared randomly on different tests which for sure have no relation to authentication or user management task. Linux only.

AlexPeshkoff added a commit that referenced this issue May 17, 2023
…e may be used after drop of another one with alias in databases.conf

(cherry picked from commit 0609bc2)
AlexPeshkoff added a commit that referenced this issue May 17, 2023
…e may be used after drop of another one with alias in databases.conf

(cherry picked from commit 0609bc2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment