Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.6.0
-
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 |
142128,5 | MB-43179: correctly check spatial views persistence | master | ns_server | Status: MERGED | +2 | +1 |
142161,3 | MB-43179: correctly check spatial views persistence | mad-hatter | ns_server | Status: MERGED | +2 | +1 |
142437,1 | Merge remote-tracking branch mad-hatter into master | master | ns_server | Status: MERGED | +2 | +1 |