You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Archy Gu (Jira)" <ji...@apache.org> on 2020/04/09 10:01:00 UTC
[jira] [Created] (ZEPPELIN-4743) MongoNotebookRepo get unstable
note path in zeppelin 0.9.0-preview1
Archy Gu created ZEPPELIN-4743:
----------------------------------
Summary: MongoNotebookRepo get unstable note path in zeppelin 0.9.0-preview1
Key: ZEPPELIN-4743
URL: https://issues.apache.org/jira/browse/ZEPPELIN-4743
Project: Zeppelin
Issue Type: Bug
Components: NotebookRepo
Affects Versions: 0.9.0
Environment: zeppelin-0.9.0-preview1
mongodb 3.4.23
Ubuntu 18.04
Reporter: Archy Gu
Attachments: test.gif
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)