From 00dfb129b9af0c3e5efab61313ef7cd93fd3a5b2 Mon Sep 17 00:00:00 2001 From: William Brown Date: Mar 08 2019 02:14:40 +0000 Subject: Ticket 49575 - Indicate autosize value errors and corrective actions Bug Description: The autosize system would fail if the values were greater than 100 comibined. However, I did not disclose how to fix these values and where. Fix Description: Improve the error message to give reasonable advice and location of the fix for corrective action. https://pagure.io/389-ds-base/issue/49575 Author: William Brown Review by: tbordaz (Thanks!) --- diff --git a/ldap/servers/slapd/back-ldbm/start.c b/ldap/servers/slapd/back-ldbm/start.c index 7d0cd22..b6ecb01 100644 --- a/ldap/servers/slapd/back-ldbm/start.c +++ b/ldap/servers/slapd/back-ldbm/start.c @@ -112,6 +112,8 @@ ldbm_back_start_autotune(struct ldbminfo *li) if ((autosize_percentage > 100) || (import_percentage > 100) || (autosize_db_percentage_split > 100) || ((autosize_percentage > 0) && (import_percentage > 0) && (autosize_percentage + import_percentage > 100))) { slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "Cache autosizing: bad settings, value or sum of values can not larger than 100.\n"); + slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "You should change nsslapd-cache-autosize + nsslapd-import-cache-autosize in dse.ldif to be less than 100.\n"); + slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "Reasonable starting values are nsslapd-cache-autosize: 10, nsslapd-import-cache-autosize: -1.\n"); return SLAPI_FAIL_GENERAL; }