Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5448

Compass fails to load any saved pipelines if any of them are not valid JSON

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.34.0
    • None
    • Aggregation pipeline
    • None
    • Not Needed
    • Iteration Narwhal

    Description

      Problem Statement/Rationale

      If you have a unparseable JSON file saved as a pipeline, Compass will fail when trying to load it and will stop loading all other pipelines

      Steps to Reproduce

      • Save a few pipelines in Compass
      • Corrupt a saved pipeline file in the SavedPipelines directory for any saved pipeline
      • Restart Compass and try to use saved pipelines

      Expected Results

      Probably you should see all pipelines that are parseable

      Actual Results

      You see no pipelines

      Additional Notes

      Maybe worth adding some logging there for the cases when loading a pipeline fails

      Attachments

        Activity

          People

            sergey.petushkov@mongodb.com Sergey Petushkov
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: