Every time that I stop the server for debugging the code and then resume, CouchBase calls returns with "OperationTimeout - The operation has timed out."
This occurs both for existing calls and new calls so every time I need to stop debugging and restart.
I’m using VS2013, latest .net sdk and community server.
Is there a flag somewhere that can fix this ?
I understand that existing calls are timed out while process hangs in debug. I also assume that any retry mechanism should later succeed.
What I don’t understand is why new calls, that are initiated after execution resume fail.
I understand that calls to CB can timeout while debugging but what I’m experiencing is different.
While debugging, executing fresh CB queries might fail and I don’t refer to calls that are executed from a different thread.
Once a call fails, all subsequent calls (same or different) fail (with OperationTimeout) and nothing helps, not even retries.
The only way to continue is to restart all over again.
I’m using a cluster of one node, in Azure, behind a VPN, from a local machine, latest .Net SDK. and community server.
I found it !
And I bet this is not what you thought. It is not even what I thought.
Apparently, timeout works as expected where the current operation times out while debugging, yet consecutive operations DO succeed when continuing with the debugger.
I’m using my own DataTips using the ToString() method.
This means that whenever I hover my objects while debugging, a ToString() method jumps into play. This method calls additional CBDB calls. For example, if I hover over a Beer A, then the ToString() method queries the database of the brewery to return “Beer A from City B”. This works great with a different DB and it is very important.
This results in a meltdown of the system where every further call returns ServiceUnavailable and only a restart of the program restores operation.
Interesting. Would you call this a SDK bug, a DataTips bug, or an application bug? If it’s an SDK bug, then I would like to create a ticket and for you to perhaps add the “steps to reproduce” and perhaps a sample project.