Project

General

Profile

Bug #9847

User story #9707: Add a Relay API: share files between nodes, launch run on remote run behind relay

Architecture #9729: New system variables

StackOverflowError on policy generation

Added by Nicolas CHARLES 12 months ago. Updated 11 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:

Description

With a 1000 nodes, I get a stackoverflow error

java.lang.StackOverflowError: null
    at com.normation.rudder.services.policies.SystemVariableServiceImpl.com$normation$rudder$services$policies$SystemVariableServiceImpl$$addWithSubChildren$1(SystemVariableService.scala:363)
    at com.normation.rudder.services.policies.SystemVariableServiceImpl$$anonfun$com$normation$rudder$services$policies$SystemVariableServiceImpl$$addWithSubChildren$1$1.apply(SystemVariableService.scala:367)
    at com.normation.rudder.services.policies.SystemVariableServiceImpl$$anonfun$com$normation$rudder$services$policies$SystemVariableServiceImpl$$addWithSubChildren$1$1.apply(SystemVariableService.scala:363)
    at scala.collection.immutable.List.flatMap(List.scala:327)
    at com.normation.rudder.services.policies.SystemVariableServiceImpl.com$normation$rudder$services$policies$SystemVariableServiceImpl$$addWithSubChildren$1(SystemVariableService.scala:363)
    at com.normation.rudder.services.policies.SystemVariableServiceImpl$$anonfun$com$normation$rudder$services$policies$SystemVariableServiceImpl$$addWithSubChildren$1$1.apply(SystemVariableService.scala:367)
    at com.normation.rudder.services.policies.SystemVariableServiceImpl$$anonfun$com$normation$rudder$services$policies$SystemVariableServiceImpl$$addWithSubChildren$1$1.apply(SystemVariableService.scala:363)
    at scala.collection.immutable.List.flatMap(List.scala:327)

I fail to see how the code can finish in any condition, as we are constantly adding the same values in the list

Associated revisions

Revision c2999ebb
Added by Nicolas CHARLES 12 months ago

Fixes #9847: StackOverflowError on policy generation

History

#1 Updated by Nicolas CHARLES 12 months ago

  • Status changed from New to In progress

#2 Updated by Nicolas CHARLES 12 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder/pull/1407

#3 Updated by Nicolas CHARLES 12 months ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

#4 Updated by Vincent MEMBRÉ 11 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.0 which was released today.

Also available in: Atom PDF