Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2684

cf-promises slow to validate policy that defines 100000 classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Evaluation
    • Labels:

      Description

      For a long time ago, exists bug with cf-promises evaluation.
      When I try to set a big scope of classes, cf-promises try to evaluate policy before execution, but make it Indefinitely or very long. When cf-promises finish evaluation, cf-agent execute policy in the twinkling of an eye.
      It was reproduced on all versions >= 3.5.0 (older version I did not testing)

      cf_promises_test.cf

      EDIT by jimis: The slowdown is seen in the attached debug.log, right after the string debug: Evaluating vars promise: integers. In a normal debug run, cf-promises just sits and waits after that line seemingly doing nothing. The huge list of ExpandScalar() lines that follow are printed here because of --log-modules=all.

        Attachments

        1. cf_promises_test.cf
          0.2 kB
        2. debug.log
          2.95 MB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                manepekoc manepekoc
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel