CouchBase query not responding

It’s a very serious problem. I am executing a simple query
Select * from data where limit 1;
This query giving empty results. I have around 2m records.
Lots of time I rebuild Primary index But for some time it gives results then after a few hours ,
facing the same problem. What can be the reason for this issue?

Which version of Couchbase Server are you using?