[ 
https://issues.apache.org/jira/browse/OAK-3499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14976114#comment-14976114
 ] 

Marcel Reutegger commented on OAK-3499:
---------------------------------------

I ran CollisionTest again with ClusterNodeInfo set to DEBUG and no network 
connectivity. The log output is:

{noformat}
10:51:13.049 DEBUG [main] ClusterNodeInfo.java:822          getMachineId(): 
discovered addresses: [] []
10:51:13.143 INFO  [main] DocumentNodeStore.java:540        Initialized 
DocumentNodeStore with clusterNodeId: 1 (id: 1, startTime: 1445939473064, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
4b364641-cbf0-4212-a701-f63c8ebd886a, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.145 INFO  [main] DocumentNodeStore.java:540        Initialized 
DocumentNodeStore with clusterNodeId: 2 (id: 2, startTime: 1445939473143, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
911fb138-9077-46eb-873c-f11783970c4d, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.163 INFO  [main] DocumentNodeStore.java:552        Starting disposal 
of DocumentNodeStore with clusterNodeId: 1 (id: 1, startTime: 1445939473064, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
4b364641-cbf0-4212-a701-f63c8ebd886a, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.164 INFO  [main] DocumentNodeStore.java:609        Disposed 
DocumentNodeStore with clusterNodeId: 1
10:51:13.165 DEBUG [main] ClusterNodeInfo.java:463          Cleaned up cluster 
node info for clusterNodeId 1 [machineId: 
random:297454f8-8691-48f8-bcf1-81831206d87d, leaseEnd: n/a]
10:51:13.165 INFO  [main] DocumentNodeStore.java:552        Starting disposal 
of DocumentNodeStore with clusterNodeId: 1 (id: 1, startTime: 1445939473064, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
4b364641-cbf0-4212-a701-f63c8ebd886a, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.165 INFO  [main] DocumentNodeStore.java:552        Starting disposal 
of DocumentNodeStore with clusterNodeId: 2 (id: 2, startTime: 1445939473143, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
911fb138-9077-46eb-873c-f11783970c4d, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.166 INFO  [main] DocumentNodeStore.java:609        Disposed 
DocumentNodeStore with clusterNodeId: 2
10:51:13.167 INFO  [main] UnmergedBranches.java:92          Purged [1] 
uncommitted branch revision entries
10:51:13.167 INFO  [main] UnmergedBranches.java:96          Purged [1] 
collision markers
10:51:13.168 INFO  [main] DocumentNodeStore.java:540        Initialized 
DocumentNodeStore with clusterNodeId: 1 (id: 1, startTime: 1445939473166, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
ec8b1c17-5be6-49ca-bc2c-5eaa34f5df5b, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.168 INFO  [main] DocumentNodeStore.java:552        Starting disposal 
of DocumentNodeStore with clusterNodeId: 1 (id: 1, startTime: 1445939473166, 
machineId: random:297454f8-8691-48f8-bcf1-81831206d87d, instanceId: 
/Users/mreutegg/devel/apache/oak/trunk/oak-core, pid: 24190, uuid: 
ec8b1c17-5be6-49ca-bc2c-5eaa34f5df5b, readWriteMode: null, state: NONE, 
revLock: NONE, oakVersion: SNAPSHOT)
10:51:13.169 INFO  [main] DocumentNodeStore.java:609        Disposed 
DocumentNodeStore with clusterNodeId: 1
{noformat}

The exception from the test:
{noformat}
purge(org.apache.jackrabbit.oak.plugins.document.CollisionTest)  Time elapsed: 
0.419 sec  <<< ERROR!
org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: Configured 
cluster node id 1 already in use: 
        at 
org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.createInstance(ClusterNodeInfo.java:490)
        at 
org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.getInstance(ClusterNodeInfo.java:377)
        at 
org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.getInstance(ClusterNodeInfo.java:338)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.<init>(DocumentNodeStore.java:431)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.getNodeStore(DocumentMK.java:659)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentMKBuilderProvider$DisposingDocumentMKBuilder.getNodeStore(DocumentMKBuilderProvider.java:73)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK.<init>(DocumentMK.java:121)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.open(DocumentMK.java:881)
        at 
org.apache.jackrabbit.oak.plugins.document.CollisionTest.purge(CollisionTest.java:55)
{noformat}

> Test failures when there is no network interface
> ------------------------------------------------
>
>                 Key: OAK-3499
>                 URL: https://issues.apache.org/jira/browse/OAK-3499
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, mongomk
>            Reporter: Marcel Reutegger
>            Assignee: Julian Reschke
>            Priority: Minor
>
> There are test failures when no network interface is available.
> {noformat}
> Tests in error: 
>   purge(org.apache.jackrabbit.oak.plugins.document.CollisionTest): Configured 
> cluster node id 1 already in use: 
>   
> inactiveClusterId(org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreTest):
>  Configured cluster node id 2 already in use: 
>   
> purgeUnmergedBranch(org.apache.jackrabbit.oak.plugins.document.UnmergedBranchTest):
>  Configured cluster node id 1 already in use: 
> {noformat}
> I'm quite confident these used to work before.
> [~reschke], could this be caused by recent changes for OAK-3449?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to