Description
This was an issue found in SDK testing with indexes and queries on collections and is a regression from 7.1.0-2123 to 7.1.0-2179
Create a 4 node cluster on 7.1.0-2179
--node=kv,index,n1ql --node=kv,fts --node=kv,cbas --node=kv,eventing,n1ql
Create a bucket
Create a primary index on the bucket
Create another bucket with a scope and collection
Create a primary index on the collection
Delete the bucket while the index is being built
Create a scope and collection on the first bucket
Try and create a primary index on the collection
Fails with error scope not found