-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plocal support for distributed databases #1615
Comments
Any idea if this is going to be fixed soon? |
Actually it seems not the issue now. @lvca should we close it ? Is it correct that we have users who use plocal with new distributed storage without problems ? |
Yes, we fixed this about 2 weeks ago. @mattaylor can you retry it please? In case the problem persists I'll reopen it |
We were struggling with this for a a week now, but it looks like we found our problem - seems to be working ok now, although we are having some issue where only the master node can serve requests as the other nodes keep aligning. Thanks, On Oct 9, 2013, at 10:30 AM, Luca Garulli notifications@github.com wrote:
|
Can you retry with last snapshot please? |
I got a little concern, now we got 2 threads (one listening on requestQueue, another listening on responseQueue) running on each node. Request Queue listening-thread call onMessage() when request coming, and execute on local node, after done, send response to Response Queue. Response Queue listening-thread execute dispatchResponseToThread() when response coming, and handled in each ODistributedResponseManager by requestID. My question is only 2 threads in each node, if we sending lots of concurrent request, is it means all request will pile up, and executed sequentially? I have not do lot loading testing against latest SNAPSHOT, all based on code reading. Please correct me if i am wrong. BTW, i did not see any place in current code base using config DISTRIBUTED_THREAD_QUEUE_SIZE. |
I'm debugging issues on replications so today I tried switching to plocal:
com.orientechnologies.orient.server.distributed.SimulateOperationsAgainstServer (I've only changed threads to 3 and db name to "test")
everything works: the client connects to both servers and replication works like a charm
now I kill server 2
Last time I tried it with local everything worked well but now client received these exceptions:
com.orientechnologies.orient.core.exception.OConcurrentModificationException: Cannot UPDATE the record #9:0 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v-2147483647 your=v0)
What's the version -2147483647 ?
Plocal can't manage update record version. This is needed when the record is aligned from another server. We use to set to Integer.MIN_VALUE + version so if it's < -2 it restored at the original version number and updated. This is the relevant code in local and memory storages on updateRecord() methods:
The text was updated successfully, but these errors were encountered: