jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-3417) oak-run OakFixture might set incorrect clusterIDs
Date Thu, 17 Sep 2015 14:46:05 GMT
Julian Reschke created OAK-3417:
-----------------------------------

             Summary: 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)

Mime
View raw message