Project

General

Profile

Actions

Bug #17176

closed

Purge of unreferenced software may still fail on very large system

Added by Nicolas CHARLES over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

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 2 (0 open2 closed)

Related to Rudder - Bug #16636: Purge of unreferenced software may fail on very large systemReleasedFrançois ARMANDActions
Related to Rudder - Bug #14924: Cleanup unreferenced software from past inventoriesReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF