Examples of updateApplicationCatalog()


Examples of org.voltdb.client.Client.updateApplicationCatalog()

        // add a procedure "InsertOrderLineBatched"
        newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-expanded.jar");
        deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-expanded.xml");
        callback = new CatTestCallback(ClientResponse.SUCCESS);
        client.updateApplicationCatalog(callback, new File(newCatalogURL), new File(deploymentURL));

        // don't care if this succeeds or fails.
        // calling the new proc before the cat change returns is not guaranteed to work
        // we just hope it doesn't crash anything
        int x = 3;
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        assertTrue(callbackSuccess);

        // this is a do nothing change... shouldn't affect anything
        newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-expanded.jar");
        deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-expanded.xml");
        results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
        assertTrue(results.length == 1);
        client.drain();
        assertTrue(callbackSuccess);

        // now calling the new proc better work
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        // remove the procedure we just added async
        newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.jar");
        deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.xml");
        callback = new CatTestCallback(ClientResponse.SUCCESS);
        client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL));

        // don't care if this works now
        x = 4;
        cb = new SyncCallback();
        client.callProcedure(cb,
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        loadSomeData(client, 60, 5);

        // change the insert new order procedure
        newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-conflict.jar");
        deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-conflict.xml");
        results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
        assertTrue(results.length == 1);

        // call the new proc and make sure the one we want gets run
        results = client.callProcedure(InsertNewOrder.class.getSimpleName(), 100, 100, 100, 100, (short)100, 100, 1.0, "a").getResults();
        assertEquals(1, results.length);
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        assertEquals(1776, results[0].asScalarLong());

        // load a big catalog change just to make sure nothing fails horribly
        newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-many.jar");
        deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-many.xml");
        results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
        assertTrue(results.length == 1);

        loadSomeData(client, 65, 5);

        //Check that if a catalog update blocker exists the catalog update fails
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

             */
            newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.jar");
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.xml");
            boolean threw = false;
            try {
                client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL));
            } catch (ProcCallException e) {
                e.printStackTrace();
                threw = true;
            }
            assertTrue(threw);
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        finally {
            zk.delete(catalogUpdateBlockerPath, -1);
        }

        //Expect success
        client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL));

        client.drain();
        assertTrue(callbackSuccess);
        assertTrue(true);
    }
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        client.drain();
        assertTrue(callbackSuccess);

        String newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base-secure.jar");
        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base-secure.xml");
        VoltTable[] results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
        assertTrue(results.length == 1);

        // a new client should need a username/password other than the regression suite default.
        boolean caught = false;
        try {
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        assertFalse(explanation.contains("INDEX SCAN"));

        // add index to NEW_ORDER
        String newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-addindex.jar");
        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-addindex.xml");
        VoltTable[] results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
        assertTrue(results.length == 1);

        // check the index for non-zero size

        long tupleCount = -1;
View Full Code Here

Examples of org.voltdb.client.Client.updateApplicationCatalog()

        assertEquals(newTupleCount, rowCount * (K + 1)); // index count is double for k=1

        // revert to the original schema
        newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.jar");
        deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.xml");
        results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
        assertTrue(results.length == 1);

        // do a call that uses the index
        callProcedure = client.callProcedure("@AdHoc", "select * from NEW_ORDER where NO_O_ID = 5;");
        result = callProcedure.getResults()[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.