Bug 2143329
Summary: | dsconf monitor dbmon: ERROR: Error: math domain error when dbcache is over 2GB | ||
---|---|---|---|
Product: | Red Hat Directory Server | Reporter: | mreynolds |
Component: | 389-ds-base | Assignee: | Pierre Rogier <progier> |
Status: | CLOSED ERRATA | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> |
Severity: | medium | Docs Contact: | Zuzana Zoubkova <zzoubkov> |
Priority: | high | ||
Version: | 12.2 | CC: | aadhikar, emartyny, idm-ds-dev-bugs, mreynolds, msauton, pasik, progier, vashirov |
Target Milestone: | DS12.2 | Keywords: | Triaged |
Target Release: | dirsrv-12.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | sync-to-jira | ||
Fixed In Version: | redhat-ds-12-9020020230314150545.1674d574 | Doc Type: | Bug Fix |
Doc Text: |
Cause: When computing the monitoring statistics, a wrong page size (db files page size instead of mempool page size) was used to compute the db.
Consequence: The db cache statistics are wrong
and an math domain error occurs when the cache get more than 50% busy.
Fix: Now the ldap backend monitoring query also returns the mempool page size and it is used to compute rightly the statistics.
Result: The statistics are now accurate and there is no more errors.
|
Story Points: | --- |
Clone Of: | 2034407 | Environment: | |
Last Closed: | 2023-05-30 09:40:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2034407 | ||
Bug Blocks: |
Description
mreynolds
2022-11-16 16:09:07 UTC
Beware that this bug title is a bit misleading: The error is not dependent of the cache size and typically occurs when the cache is more than 50% busy. because cache size computation is wrongly using db file page size value (i.e 8K by default) while typical db cache page size (aka file system preferred size) is 4K Upstream ticket: https://github.com/389ds/389-ds-base/issues/5550 Automated test passed: ============================================================= test session starts ============================================================= platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache 389-ds-base: 2.2.7-2.module+el9dsrv+18726+78959e84 nss: 3.79.0-18.el9_1 nspr: 4.34.0-18.el9_1 openldap: 2.6.2-3.el9 cyrus-sasl: not installed FIPS: disabled rootdir: /root/ds/dirsrvtests, configfile: pytest.ini collected 3 items dirsrvtests/tests/suites/clu/dbmon_test.py::test_dsconf_dbmon PASSED [ 33%] dirsrvtests/tests/suites/clu/dbmon_test.py::test_dbmon_mp_pagesize PASSED [ 66%] dirsrvtests/tests/suites/replication/changelog_test.py::test_changelog_pagesize PASSED [100%] ================================================== 3 passed, 12 warnings in 67.90s (0:01:07) ================================================== Marking as VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (redhat-ds:12 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:3344 |