Cocuhbase Flush Problem On Client Side


I am facing with an error while fluhing my couchbase bucket from SDK side. I am using SDK 2.5.1, on server side Couchbase Comminity Edition 5.1.1

I gave 5 min timeout to flush() method, and there was 90 million document in my bucket and I got :

com.couchbase.client.core.CouchbaseException: Flush failed because of: {"_":“Flush failed with unexpected error. Check server logs for details.”}
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(
at rx.internal.operators.OnSubscribeRedo$2$1.onNext(
at rx.internal.producers.SingleProducer.request(
at rx.internal.producers.ProducerArbiter.setProducer(
at rx.internal.operators.OnSubscribeRedo$2$1.setProducer(
at rx.subjects.AsyncSubject.onCompleted(
at com.couchbase.client.core.endpoint.AbstractGenericHandler.completeResponse(
at com.couchbase.client.core.endpoint.AbstractGenericHandler.access$000(
at com.couchbase.client.core.endpoint.AbstractGenericHandler$
at java.util.concurrent.Executors$
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
at java.util.concurrent.ScheduledThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.couchbase.client.core.message.config.FlushResponse.class
at rx.exceptions.OnErrorThrowable.addValueAsLastCause(
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(

How can I overcome this problem on client side or server side, What are the possible causes

Hi Ali,

Flush failed with unexpected error. Check server logs for details.

This error message recommends looking in the Couchbase Server logs to see more information about the problem. Without access to the logs, it’s hard to guess what might be wrong. Maybe you could take a look and share what you see in the Couchbase Server logs?