Skip to content
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

Replication writeQuorum broken with failureAvailableNodesLessQuorum #2140

Closed
galan opened this issue Mar 18, 2014 · 0 comments
Closed

Replication writeQuorum broken with failureAvailableNodesLessQuorum #2140

galan opened this issue Mar 18, 2014 · 0 comments
Assignees
Milestone

Comments

@galan
Copy link

galan commented Mar 18, 2014

Follow up to #2131

In short: Two nodes, "writeQuorum" is set to 2 (uses default settings), shuting down node one, inserting into node two. Node two reports error - buts shows inserted record. After starting up node one, inserted record is in node one.
Expected behaviour: Node two reports error on insert and does not insert nor replicates record.

OrientDb version: 1.6.4, Java 1.7.0u10.

I used a vanilla OrientDb, executing commands using Studio, settings changed prior first start:

  • hazelcast.xml (hard-wired two ips)
  • orientdb-dserver-config.xml (set nodeName)
  • default-distributed-db-config.json (set failureAvailableNodesLessQuorum to true)

Process:

  • Executed Node 1: create class Dummy insert into Dummy set name = 'First', surname = 'Aaa' (records were replicated to node 2)
  • Shutdown Node 1
  • Execute Node 2: insert into Dummy set name = 'First', surname = 'Aaa' (error com.orientechnologies.orient.server.distributed.ODistributedException: Quorum 2 not reached for request=id=177 task=record_create(Use indexes on queries [moved] #14:-1 v.0). Servers in conflicts are: no server in conflict is shown)
  • Starting Node 1
  • Record 'First/Aaa' is shown
@lvca lvca closed this as completed Aug 27, 2014
@lvca lvca added the bug label Aug 27, 2014
@lvca lvca added this to the 2.0rc1 milestone Aug 27, 2014
@lvca lvca self-assigned this Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants