Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-53393

[BP of MB-53381]: Restore of Eventing Functions to new scope same bucket overwrites *.* Function Scope

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Using backup/restore with Eventing seems to work, but the admin/global Function Scope exhibits some odd behaviors. They seem to be upgraded and overwritten If and only if they are undeployed or paused.  Both in terms of "listen to location" and "bucket bindings"

      For testing I do a full backup then I do a restore with 

      "Map Data" of  "b1.bulk2=b1.bulk3" 

      "Include Data" of "b1"

      If we have a "Function Scope" of * . * we should never overwrite the function if we restore to the same bucket (but a different scope).   Perhaps we should try to make a duplicate function:

      <function_name>_clone or if that exists <function_name>_clone1 etc. etc.

      Attached are 11 images 00_* to 10_* showing the restore behaviour.   Pay attention to 07_* and 10_*

      Attachments

        1. 00_evt_functions.png
          00_evt_functions.png
          200 kB
        2. 01_buckets.png
          01_buckets.png
          139 kB
        3. 02_keyspaces.png
          02_keyspaces.png
          190 kB
        4. 03_bindings_all_functions.png
          03_bindings_all_functions.png
          103 kB
        5. 04_resotre_settings.png
          04_resotre_settings.png
          133 kB
        6. 05_the_backup_the_resotre.png
          05_the_backup_the_resotre.png
          191 kB
        7. 06_the_new_scope_crerated.png
          06_the_new_scope_crerated.png
          296 kB
        8. 07_overwrote_nondeployed_global_functions.png
          07_overwrote_nondeployed_global_functions.png
          295 kB
        9. 08_binding_upgrade_if_undeployed.png
          08_binding_upgrade_if_undeployed.png
          95 kB
        10. 09_reset_with_all_funcs_undloyed.png
          09_reset_with_all_funcs_undloyed.png
          199 kB
        11. 10_overwrote_every_global_function.png
          10_overwrote_every_global_function.png
          256 kB

        Issue Links

          For Gerrit Dashboard: MB-53393
          # Subject Branch Project Status CR V

          Activity

            People

              sujay.gad Sujay Gad
              ankit.prabhu Ankit Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty