Skip to content

Test failure: test_match_large_valueset #6192

Closed
@vashirov

Description

@vashirov

Issue Description

=================================== FAILURES ===================================
__________________________ test_match_large_valueset ___________________________

topology_st = <lib389.topologies.TopologyMain object at 0x7f5860c94b30>

    def test_match_large_valueset(topology_st):
        """Test that when returning a big number of entries
        and that we need to match the filter from a large valueset
        we get benefit to use the sorted valueset
    
        :id: 7db5aa88-50e0-4c31-85dd-1d2072cb674c
    
        :setup: Standalone instance
    
        :steps:
             1. Create a users and groups backends and tune them
             2. Generate a test ldif (2k users and 1K groups with all users)
             3. Import test ldif file using Offline import (ldif2db).
             4. Prim the 'groups' entrycache with a "fast" search
             5. Search the 'groups' with a difficult matching value
             6. check that etime from step 5 is less than a second
    
        :expectedresults:
             1. Create a users and groups backends should PASS
             2. Generate LDIF should PASS.
             3. Offline import should PASS.
             4. Priming should PASS.
             5. Performance search should PASS.
             6. Etime of performance search should PASS.
        """
    
        log.info('Running test_match_large_valueset...')
        #
/usr/lib/python3.12/site-packages/lib389/__init__.py:177: in inner
    return f(*args, **kwargs)
/usr/lib64/python3.12/site-packages/ldap/ldapobject.py:400: in modify_ext_s
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
/usr/lib/python3.12/site-packages/lib389/__init__.py:177: in inner
    return f(*args, **kwargs)
/usr/lib64/python3.12/site-packages/ldap/ldapobject.py:543: in result3
    resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(
/usr/lib/python3.12/site-packages/lib389/__init__.py:177: in inner
    return f(*args, **kwargs)
/usr/lib64/python3.12/site-packages/ldap/ldapobject.py:553: in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
/usr/lib/python3.12/site-packages/lib389/__init__.py:177: in inner
    return f(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <lib389.DirSrv object at 0x7f5860c97560>
func = <built-in method result4 of LDAP object at 0x7f5860f1fc90>
args = (34, 1, -1, 0, 0, 0), kwargs = {}, diagnostic_message_success = None

    def _ldap_call(self,func,*args,**kwargs):
      """
      Wrapper method mainly for serializing calls into OpenLDAP libs
      and trace logs
      """
      self._ldap_object_lock.acquire()
      if __debug__:
        if self._trace_level>=1:
          self._trace_file.write('*** {} {} - {}\n{}\n'.format(
            repr(self),
            self._uri,
            '.'.join((self.__class__.__name__,func.__name__)),
            pprint.pformat((args,kwargs))
          ))
          if self._trace_level>=9:
            traceback.print_stack(limit=self._trace_stack_limit,file=self._trace_file)
      diagnostic_message_success = None
      try:
        try:
>         result = func(*args,**kwargs)
E         ldap.UNWILLING_TO_PERFORM: {'msgtype': 103, 'msgid': 34, 'result': 53, 'desc': 'Server is unwilling to perform', 'ctrls': [], 'info': 'Error: "nsslapd-cachememsize" can not be updated while "nsslapd-cache-autosize" is set in "cn=config,cn=ldbm database,cn=plugins,cn=config".', 'ldap_request': "modify_ext_s(('cn=groups,cn=ldbm database,cn=plugins,cn=config', [(2, 'nsslapd-cachememsize', [b'200000000'])]),{'serverctrls': None, 'clientctrls': None, 'escapehatch': 'i am sure'}) on instance standalone1"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThe issue will be triaged during scrum

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions