Hello,
Please try this out with the Couchbase Server 4.0 Developer Preview (integrated CB Server, not N1QL DP4). We fixed similar issues as you are reporting. If you still see the same issues, please reply here, and we’ll investigate.
Thanks,
Gerald