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

UI does not delete design documents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.6.2, 7.0.0
    • 6.6.0
    • UI

    • Enterprise Edition 6.6.0 build 7909
    • Untriaged
    • MacOSX 64-bit
    • 1
    • Unknown

    Description

      I had a couple design documents / views defined on my osx 6.6.0 cluster. I deleted them in the UI and then something weird showed up (note the duplicate boxes where the design docs were originally):

      I then tried to insert one from the SDK and got an exception that the design doc already exists, and indeed, going directly to http://127.0.0.1:8091/pools/default/buckets/default/ddocs showed them:

      {
         "rows":[
            {
               "doc":{
                  "meta":{
                     "id":"_design/dev_my_design_doc",
                     "rev":"2-09f4d256"
                  },
                  "json":{
                     "spatial":{
                        
                     },
                     "views":{
                        
                     }
                  }
               },
               "controllers":{
                  "compact":"/pools/default/buckets/default/ddocs/_design%2Fdev_my_design_doc/controller/compactView",
                  "setUpdateMinChanges":"/pools/default/buckets/default/ddocs/_design%2Fdev_my_design_doc/controller/setUpdateMinChanges"
               }
            },
            {
               "doc":{
                  "meta":{
                     "id":"_design/dev_pub1",
                     "rev":"3-0fc9f33a"
                  },
                  "json":{
                     "spatial":{
                        
                     },
                     "views":{
                        
                     }
                  }
               },
               "controllers":{
                  "compact":"/pools/default/buckets/default/ddocs/_design%2Fdev_pub1/controller/compactView",
                  "setUpdateMinChanges":"/pools/default/buckets/default/ddocs/_design%2Fdev_pub1/controller/setUpdateMinChanges"
               }
            },
            {
               "doc":{
                  "meta":{
                     "id":"_design/dev_pub2",
                     "rev":"3-1d730c62"
                  },
                  "json":{
                     "spatial":{
                        
                     },
                     "views":{
                        
                     }
                  }
               },
               "controllers":{
                  "compact":"/pools/default/buckets/default/ddocs/_design%2Fdev_pub2/controller/compactView",
                  "setUpdateMinChanges":"/pools/default/buckets/default/ddocs/_design%2Fdev_pub2/controller/setUpdateMinChanges"
               }
            },
            {
               "doc":{
                  "meta":{
                     "id":"_design/spark_design",
                     "rev":"2-e865600d"
                  },
                  "json":{
                     "spatial":{
                        
                     },
                     "views":{
                        "view":{
                           "map":"function (doc, meta) { if (doc.type == \"user\") { emit(doc.username, null); } }"
                        }
                     }
                  }
               },
               "controllers":{
                  "compact":"/pools/default/buckets/default/ddocs/_design%2Fspark_design/controller/compactView",
                  "setUpdateMinChanges":"/pools/default/buckets/default/ddocs/_design%2Fspark_design/controller/setUpdateMinChanges"
               }
            },
            {
               "doc":{
                  "meta":{
                     "id":"_design/upsert1",
                     "rev":"1-faf8adce"
                  },
                  "json":{
                     "spatial":{
                        
                     },
                     "views":{
                        "v1":{
                           "map":"function(d,m){}"
                        }
                     }
                  }
               },
               "controllers":{
                  "compact":"/pools/default/buckets/default/ddocs/_design%2Fupsert1/controller/compactView",
                  "setUpdateMinChanges":"/pools/default/buckets/default/ddocs/_design%2Fupsert1/controller/setUpdateMinChanges"
               }
            }
         ]
      }
      

      What's weird is that even after a server restart the UI still shows these 3 boxes (I first thought it might be some un-clean angular state) and the design docs can be loaded from the rest endpoint.

      Attachments

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

        Activity

          People

            pavel Pavel Blagodov
            daschl Michael Nitschinger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty