Project

General

Profile

Bug #17176

Purge of unreferenced software may still fail on very large system

Added by Nicolas CHARLES 5 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

[2020-04-19 21:02:16] DEBUG com.normation.rudder.services.queries.AcceptedNodesLDAPQueryProcessor - Result obtained in 4ms for query { returnType:'NodeReturnType' with 'And' criteria [serializedNodeProperty.name.value eq blablabla] }
LDAPException(resultCode=81 (server down), numEntries=0, numReferences=0, errorMessage='The connection is not established.', ldapSDKVersion=4.0.7, revision=28484')
        at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3767)
        at com.normation.ldap.sdk.RoLDAPConnection.search(LDAPConnection.scala:302)
        at com.normation.ldap.sdk.ReadOnlyEntryLDAPConnection.search(LDAPConnection.scala:82)
        at com.normation.ldap.sdk.ReadOnlyEntryLDAPConnection.search$(LDAPConnection.scala:81)
        at com.normation.ldap.sdk.RoLDAPConnection.search(LDAPConnection.scala:283)
        at com.normation.ldap.sdk.ReadOnlyEntryLDAPConnection.searchSub(LDAPConnection.scala:158)
        at com.normation.ldap.sdk.ReadOnlyEntryLDAPConnection.searchSub$(LDAPConnection.scala:158)
        at com.normation.ldap.sdk.RoLDAPConnection.searchSub(LDAPConnection.scala:283)
        at com.normation.inventory.ldap.core.ReadOnlySoftwareDAOImpl.$anonfun$getSoftwaresForAllNodes$3(ReadOnlySoftwareInventoryDAOImpl.scala:136)
        at com.normation.utils.Control$.$anonfun$sequence$1(Control.scala:53)
        at scala.collection.immutable.Stream.foreach(Stream.scala:533)
        at com.normation.utils.Control$.sequence(Control.scala:53)
        at com.normation.inventory.ldap.core.ReadOnlySoftwareDAOImpl.$anonfun$getSoftwaresForAllNodes$2(ReadOnlySoftwareInventoryDAOImpl.scala:129)
        at net.liftweb.common.Full.flatMap(Box.scala:856)
        at com.normation.inventory.ldap.core.ReadOnlySoftwareDAOImpl.getSoftwaresForAllNodes(ReadOnlySoftwareInventoryDAOImpl.scala:124)
        at com.normation.inventory.ldap.core.SoftwareServiceImpl.$anonfun$deleteUnreferencedSoftware$3(SoftwareService.scala:29)
        at net.liftweb.common.Full.flatMap(Box.scala:856)
        at com.normation.inventory.ldap.core.SoftwareServiceImpl.deleteUnreferencedSoftware(SoftwareService.scala:25)
        at com.normation.rudder.batch.PurgeUnreferencedSoftwares.$anonfun$new$3(PurgeUnreferencedSoftwares.scala:65)
        at monix.execution.internal.RunnableAction.run(RunnableAction.scala:25)
        at monix.execution.schedulers.ReferenceScheduler$$anon$1.run(ReferenceScheduler.scala:45)
        at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: LDAPException(resultCode=81 (server down), errorMessage='The connection is not established.', ldapSDKVersion=4.0.7, revision=28484)
        at com.unboundid.ldap.sdk.LDAPConnection.registerResponseAcceptor(LDAPConnection.java:4678)
:

when running at the same time as dynamic group update, it still fails
there were 118 ldap query in the previous second. It seems really too agressive, and #16636 didn't fix it


Related issues

Related to Rudder - Bug #16636: Purge of unreferenced software may fail on very large systemReleasedFrançois ARMANDActions
#1

Updated by Nicolas CHARLES 5 months ago

  • Related to Bug #16636: Purge of unreferenced software may fail on very large system added
#2

Updated by Nicolas CHARLES 5 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
#3

Updated by Nicolas CHARLES 5 months ago

  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/2911
#4

Updated by Nicolas CHARLES 5 months ago

  • Status changed from In progress to Pending technical review
#5

Updated by Nicolas CHARLES 4 months ago

  • Status changed from Pending technical review to Pending release
#7

Updated by Vincent MEMBRÉ 2 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.18 and 6.1.2 which were released today.

Also available in: Atom PDF