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

Julian Reschke commented on OAK-3417:
-------------------------------------

Further investigation shows that there is no code in oak-run that actually uses 
clustered setups. Fix or remove?

> oak-run OakFixture might set incorrect clusterIDs
> -------------------------------------------------
>
>                 Key: OAK-3417
>                 URL: https://issues.apache.org/jira/browse/OAK-3417
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: run
>            Reporter: Julian Reschke
>            Priority: Minor
>
> Seen in OakFixture.java:
> {code}
>             @Override
>             public Oak[] setUpCluster(int n) throws Exception {
>                 Oak[] cluster = new Oak[n];
>                 kernels = new DocumentMK[cluster.length];
>                 for (int i = 0; i < cluster.length; i++) {
>                     MongoConnection mongo = new MongoConnection(uri);
>                     DocumentMK.Builder mkBuilder = new DocumentMK.Builder().
>                             setMongoDB(mongo.getDB()).
>                             memoryCacheSize(cacheSize).
>                             setPersistentCache("target/persistentCache,time").
>                             setClusterId(i).
>                             setLogging(false);
>                     setupBlobStore(mkBuilder);
>                     kernels[i] = mkBuilder.open();
>                     cluster[i] = newOak(kernels[i].getNodeStore());
>                 }
>                 return cluster;
>             }
> {code}
> ...however, {{setClusterId(0)}} is special (it generates it automatically}



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

Reply via email to