andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 6 months ago
Clone

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

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