Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #8246: Node configuration cache is invalidated too often #1088

Conversation

fanf
Copy link
Member

@fanf fanf commented May 6, 2016

@@ -439,10 +439,13 @@ trait DeploymentService_buildNodeConfigurations extends DeploymentService with L
, globalSystemVariables: Map[String, Variable]
): Map[NodeId, InterpolationContext] = {

println(s"**** AGAIN ${allNodeInfos.size} nodes in allNodeInfos, check exists:\n *** ${List("06da3556-5204-4bd7-b3b0-fa5e7bcfbbea","009e0af1-1a3c-4ee0-a91d-10b68a008f5d", "073239d7-c633-4b60-8477-57131839fd34").map( k => (k, allNodeInfos.isDefinedAt(NodeId(k)))).mkString("\n *** ")}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this line doing :o
Are the hard-coded nodeIds not just for debug?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drunk @fanf is drunk ;) I think it's debug / dev logger that need to be removed ... or changed as logger.trace without hardcoded ids ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pay attention to the Balmer Peak!
https://xkcd.com/323/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was debug. The nodes in the list had specific interesting properties, like "no policy server", "policy server id not a known node", "policy server a known node (which don't know it is a policy server)"

@VinceMacBuche
Copy link
Member

apart the print it's ok to me and can be merged !

@fanf
Copy link
Member Author

fanf commented May 10, 2016

PR updated

@fanf fanf force-pushed the bug_8246/node_configuration_cache_is_invalidated_too_often branch from 37af5f6 to ad4ac0b Compare May 10, 2016 16:45
@VinceMacBuche VinceMacBuche merged commit a1e2090 into Normation:branches/rudder/2.11 May 10, 2016
@fanf fanf deleted the bug_8246/node_configuration_cache_is_invalidated_too_often branch March 15, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants