Blame SOURCES/0027-Issue-4315-performance-search-rate-nagle-triggers-hi.patch

be9751
From f84e75de9176218d3b47a447d07fe8fb7ca3d72f Mon Sep 17 00:00:00 2001
be9751
From: Barbora Simonova <bsmejkal@redhat.com>
be9751
Date: Mon, 11 Jan 2021 15:51:24 +0100
be9751
Subject: [PATCH] Issue 4315 - performance search rate: nagle triggers high
be9751
 rate of setsocketopt
be9751
be9751
Description:
be9751
The config value of nsslapd-nagle is now set to 'off' by default.
be9751
Added a test case, that checks the value.
be9751
be9751
Relates: https://github.com/389ds/389-ds-base/issues/4315
be9751
be9751
Reviewed by: droideck (Thanks!)
be9751
---
be9751
 .../tests/suites/config/config_test.py        | 20 +++++++++++++++++++
be9751
 1 file changed, 20 insertions(+)
be9751
be9751
diff --git a/dirsrvtests/tests/suites/config/config_test.py b/dirsrvtests/tests/suites/config/config_test.py
be9751
index 38d1ed9ac..fda16a530 100644
be9751
--- a/dirsrvtests/tests/suites/config/config_test.py
be9751
+++ b/dirsrvtests/tests/suites/config/config_test.py
be9751
@@ -41,6 +41,26 @@ def big_file():
be9751
     return TEMP_BIG_FILE
be9751
 
be9751
 
be9751
+@pytest.mark.bz1897248
be9751
+@pytest.mark.ds4315
be9751
+@pytest.mark.skipif(ds_is_older('1.4.3.16'), reason="This config setting exists in 1.4.3.16 and higher")
be9751
+def test_nagle_default_value(topo):
be9751
+    """Test that nsslapd-nagle attribute is off by default
be9751
+
be9751
+    :id: 00361f5d-d638-4d39-8231-66fa52637203
be9751
+    :setup: Standalone instance
be9751
+    :steps:
be9751
+        1. Create instance
be9751
+        2. Check the value of nsslapd-nagle
be9751
+    :expectedresults:
be9751
+        1. Success
be9751
+        2. The value of nsslapd-nagle should be off
be9751
+    """
be9751
+
be9751
+    log.info('Check the value of nsslapd-nagle attribute is off by default')
be9751
+    assert topo.standalone.config.get_attr_val_utf8('nsslapd-nagle') == 'off'
be9751
+
be9751
+
be9751
 def test_maxbersize_repl(topology_m2, big_file):
be9751
     """maxbersize is ignored in the replicated operations.
be9751
 
be9751
-- 
be9751
2.26.2
be9751