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

Clone note creates duplicate paragraph IDs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.9.0
    • None
    • zeppelin-server
    • None

    Description

      Cloning a note violates an assumed constraint on the note model that assumes that paragraph IDs is unique for the whole notebook.

      A bug that (most likely) is a consequence of that can be reproduced as follows:

      1. Create a new note A that uses the Flink interpreter (in shared mode).
      2. Create a flink.ssql paragraph A.1 that creates a table backed by a stream.
      3. Create a flink.ssql paragraph A.2 that creates a streaming query that reads from the table.
      4. Clone note A to note B.
      5. Change the contents of B.2 so it now inserts a finite amount of data into the table (e.g. using INSERT INTO).
      6. Run paragraph A.2.
      7. Run paragraph B.2.
      8. Try to cancel the streaming query from step (6).

      I think in order to fix this the clone action should reset all the paragraph IDs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aalexandrov Alexander Alexandrov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: