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

Import/Clone user not set in Paragraph causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.7.0, 0.7.1, 0.8.0, 0.9.0
    • 0.8.0
    • zeppelin-zengine
    • None
    • Patch

    Description

      When performing testing with Zeppelin 0.9.0/0.8.0 with importing notebooks and/or cloning notebooks noticed NPE's being thrown.  After performing some debug for the past few days determined the cause is the fact that "user" attribute is not being populated and "user" is used in many places including binding interpreters and unbinding interpreters. The only workaround is to run all the paragraphs which go and update the notebooks paragraph json sections. I fixed this by during the Note.addCloneParagraph by passing AuthenticationInfo in so that "user" is set. 

       

      I've attached log showing my debug statements I added both with and without the fix and diff's of the notebook jsons missing the "user" attribute during the clone/import.

       

      Example of missing user attribute on clone:

       

      — /tmp/2D932HMYZ.orig.json    2018-03-07 18:50:26.105410990 -0500

      +++ /tmp/2DAVJSE2G.clone.json   2018-03-07 18:50:49.953606890 -0500

      @@ -2,12 +2,16 @@

         "paragraphs": [

           {

             "text": "%sql\nshow tables in processed_opendata_samples",

      -      "user": "gss2002",

      -      "dateUpdated": "2018-03-07 14:53:18.449",

      +      "dateUpdated": "2018-03-07 18:47:49.949",

       

      Attachments

        1. ZEPPELIN-3309.patch
          2 kB
          Greg Senia
        2. orig_vs_clone.nofix.txt
          14 kB
          Greg Senia
        3. import_works.log.txt
          56 kB
          Greg Senia
        4. import_failure.log.txt
          60 kB
          Greg Senia
        5. clone_works.log.txt
          42 kB
          Greg Senia
        6. clone_failure.log.txt
          105 kB
          Greg Senia

        Issue Links

          Activity

            People

              gss2002 Greg Senia
              gss2002 Greg Senia
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: