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

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