You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Marth (JIRA)" <ji...@apache.org> on 2013/12/09 12:06:11 UTC

[jira] [Updated] (OAK-1260) Using multiple cluster nodes can corrupt the data

     [ https://issues.apache.org/jira/browse/OAK-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Marth updated OAK-1260:
-------------------------------

    Fix Version/s: 0.14

> Using multiple cluster nodes can corrupt the data
> -------------------------------------------------
>
>                 Key: OAK-1260
>                 URL: https://issues.apache.org/jira/browse/OAK-1260
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>            Reporter: Thomas Mueller
>             Fix For: 0.14
>
>
> When using multiple cluster nodes, the node data stored in MongoDB can get corrupt. Unfortunately, there is no reproducible test case so far; we only have the corrupt data so far.
> It looks like the node was added by cluster node 1 in r142b9051a3e-0-1, then removed _twice_ by cluster node 2 in revisions r142b9064ef5-0-2 and r142b9064f10-0-2, then re-added by cluster node 1 in revision r142b9065acd-0-1, but the properties were not set.
> The result was that the node is now there, but the primary type is missing (this is the error that Oak core was reporting).
> {code}
> db.nodes.find({_id:"5:/var/discovery/impl/establishedView/fc3b22dc-951e-4268-8c65-354462ea9a10"}).pretty()
> {
>      ":source-path" : {
>          "r142b9051a46-0-1" :
> "\"/var/discovery/impl/ongoingVotings/fc3b22dc-951e-4268-8c65-354462ea9a10\""
>      },
>      "_children" : true,
>      "_commitRoot" : {
>          "r142b9051a3e-0-1" : "0",
>          "r142b9051a46-0-1" : "0",
>          "r142b9064ef5-0-2" : "0",
>          "r142b9064f10-0-2" : "0",
>          "r142b9065acd-0-1" : "0"
>      },
>      "_deleted" : {
>          "r142b9051a3e-0-1" : "false",
>          "r142b9064ef5-0-2" : "true",
>          "r142b9064f10-0-2" : "true",
>          "r142b9065acd-0-1" : "false"
>      },
>      "_id" :
> "5:/var/discovery/impl/establishedView/fc3b22dc-951e-4268-8c65-354462ea9a10",
>      "_lastRev" : {
>          "r0-0-1" : "r142b9065acd-0-1",
>          "r0-0-2" : "r142b9064f4a-0-2"
>      },
>      "_modCount" : NumberLong(8),
>      "_modified" : NumberLong(277216734),
>      "jcr:created" : {
>          "r142b9051a3e-0-1" : "\"dat:2013-12-03T16:13:08.599+01:00\""
>      },
>      "jcr:createdBy" : {
>          "r142b9051a3e-0-1" : "\"admin\""
>      },
>      "jcr:primaryType" : {
>          "r142b9051a3e-0-1" : "\"nam:sling:Folder\""
>      },
>      "leaderElectionId" : {
>          "r142b9051a3e-0-1" :
> "\"0_0000001386083588359_dd63c091-ca18-41ee-9175-bffd28fee500\""
>      },
>      "leaderId" : {
>          "r142b9051a3e-0-1" : "\"dd63c091-ca18-41ee-9175-bffd28fee500\""
>      },
>      "promotedAt" : {
>          "r142b9051a3e-0-1" : "\"dat:2013-12-03T16:13:08.668+01:00\""
>      },
>      "votingStart" : {
>          "r142b9051a3e-0-1" : "\"dat:2013-12-03T16:13:08.618+01:00\""
>      }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)