Examples of updateApplicationCatalog()


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

                "CREATE PROCEDURE FROM CLASS org.voltdb.compiler.procedures.NotAnnotatedEmptyProcedure");

        File tweakedJarFile = new File(tweakedJarPath);
        try {
            try {
                VoltTable[] results = client.updateApplicationCatalog(
                        tweakedJarFile, new File(upgradeCatalogXMLPath)).getResults();
                assertTrue(results.length == 1);
                boolean found = watcher.waitForString();
                assertTrue(found);
            }
View Full Code Here

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

                "CREATE PROCEDURE FROM CLASS org.voltdb.compiler.procedures.NotAnnotatedEmptyStaticInitializerProcedure");

        File tweakedJarFile = new File(tweakedJarPath);
        try {
            try {
                client.updateApplicationCatalog(
                        tweakedJarFile, new File(upgradeCatalogXMLPath)).getResults();
                fail("Expect ProcCallException");
            }
            catch (ProcCallException e) {
                assertTrue(e.getLocalizedMessage().contains("Catalog upgrade failed"));
View Full Code Here

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

        assertTrue(callbackSuccess);

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

        // 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()

            //
            // Test that we can enable snapshots
            //
            String newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-enable_snapshot.jar");
            String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-enable_snapshot.xml");
            VoltTable[] results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
            assertTrue(results.length == 1);
            Thread.sleep(5000);

            //
            // Make sure snapshot files are generated
View Full Code Here

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

            //
            // Test that we can change settings like the path
            //
            newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-change_snapshot.jar");
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-change_snapshot.xml");
            results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
            assertTrue(results.length == 1);
            Thread.sleep(5000);

            //
            // Check that files are made in the new path
View Full Code Here

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

            //
            // Change the snapshot path to something that doesn't exist, no crashes
            //
            newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-change_snapshot_dir_not_exist.jar");
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-change_snapshot_dir_not_exist.xml");
            results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
            assertTrue(results.length == 1);

            System.out.println("Waiting for failed snapshots");
            Thread.sleep(5000);
View Full Code Here

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

            //
            // Change it back
            //
            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);
            Thread.sleep(5000);

            //
            // Make sure snapshots resume
View Full Code Here

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

            //
            // Make sure you can disable snapshots
            //
            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);
            for (File f : m_config.listFiles(new File("/tmp/snapshotdir2"))) {
                f.delete();
            }
View Full Code Here

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

            //
            // Test that we can enable snapshots
            //
            newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-enable_snapshot.jar");
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-enable_snapshot.xml");
            results = client.updateApplicationCatalog(new File(newCatalogURL), new File(deploymentURL)).getResults();
            assertTrue(results.length == 1);
            Thread.sleep(5000);

            //
            // Make sure snapshot files are generated
View Full Code Here

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

            //
            // Turn snapshots off so that we can clean up
            //
            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);
            Thread.sleep(1000);

            m_config.deleteDirectory(new File("/tmp/snapshotdir1"));
            m_config.deleteDirectory(new File("/tmp/snapshotdir2"));
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.