Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-4743

MongoNotebookRepo get unstable note path in zeppelin 0.9.0-preview1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • NotebookRepo
    • None
    • zeppelin-0.9.0-preview1
      mongodb 3.4.23
      Ubuntu 18.04

    Description

      In 0.9.0, when using MongoNotebookRepo, zeppelin store note paths in folder collection and get note paths by aggregation $graphLookup.

      However, when I create notes in multi-layer folders, and then restart zeppelin or call /api/notebook-repositories/reload, the path of note is unstable.

      The order of documents returned by $graphLookup leads to this problem. I investigate $graphLookup through mongodb manual(https://docs.mongodb.com/v3.4/reference/operator/aggregation/graphLookup/).The reference indicates that documents returned in the as field are not guaranteed to be in any order. Then I view the source of MongoNotebookRepo, and I found that zeppelin builds the note path without sorting the documenent returned in as field of $graphLookup. I'll be happy to submit a PR to fix this if you like.

      Attachments

        1. test.gif
          12.13 MB
          Archy Gu

        Issue Links

          Activity

            People

              archy Archy Gu
              archy Archy Gu
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h