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

gstat may produce faulty report about presence of some none-encrypted pages in database [CORE5796] #6059

Closed
firebird-automations opened this issue Apr 18, 2018 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @AlexPeshkoff

Right after encryption an attempt to run:
gstat -e dbname.fdb
returns the following crypt-pages report:

Data pages: total 884803, encrypted 884803, non-crypted 1
Index pages: total 161487, encrypted 161487, non-crypted 0
Blob pages: total 108078, encrypted 108078, non-crypted 0

or

Data pages: total 884803, encrypted 884803, non-crypted 0
Index pages: total 161487, encrypted 161487, non-crypted 0
Blob pages: total 108078, encrypted 108078, non-crypted 124

Commits: b5ad1ec 9346d75

====== Test Details ======

See details in .fbt file.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

An issue happened because gbak did not take into an account possible presence of free space in the end of database. Deallocated pages in that space were getting into the report as not enecrypted though actually they were not present in database no matter of the fact that were present in the file.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 1 [ 10750 ]

Fix Version: 3.0.4 [ 10863 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done with caveats

Test Details: See details in .fbt file.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment