Examples of updateApplicationCatalog()


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

            // Change it back
            //
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.xml");
            // Mix in various ways to specify no catalog.  Make sure the client convenience method
            // works with a null file.
            results = client.updateApplicationCatalog(null, 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
            //
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.xml");
            results = client.updateApplicationCatalog(null, 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
            //
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-enable_snapshot.xml");
            results = client.updateApplicationCatalog(null, 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
            //
            deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-base.xml");
            results = client.updateApplicationCatalog(null, 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

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

        assertTrue(callbackSuccess);

        String newCatalogURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-addtable.jar");
        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-addtable.xml");
        // Asynchronously attempt consecutive catalog update and deployment update
        client.updateApplicationCatalog(new CatTestCallback(ClientResponse.SUCCESS),
                new File(newCatalogURL), null);
        // Then, update the users in the deployment
        SyncCallback cb2 = new SyncCallback();
        client.updateApplicationCatalog(cb2, null, new File(deploymentURL));
        cb2.waitForResponse();
View Full Code Here

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

        // Asynchronously attempt consecutive catalog update and deployment update
        client.updateApplicationCatalog(new CatTestCallback(ClientResponse.SUCCESS),
                new File(newCatalogURL), null);
        // Then, update the users in the deployment
        SyncCallback cb2 = new SyncCallback();
        client.updateApplicationCatalog(cb2, null, new File(deploymentURL));
        cb2.waitForResponse();
        assertEquals(ClientResponse.USER_ABORT, cb2.getResponse().getStatus());
        assertTrue(cb2.getResponse().getStatusString().contains("Invalid catalog update"));

        // Verify the heartbeat timeout change didn't take
View Full Code Here

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

        assertTrue(callbackSuccess);

        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-change_schema_update.xml");
        // Try to change the schem setting
        SyncCallback cb = new SyncCallback();
        client.updateApplicationCatalog(cb, null, new File(deploymentURL));
        cb.waitForResponse();
        assertEquals(ClientResponse.GRACEFUL_FAILURE, cb.getResponse().getStatus());
        System.out.println(cb.getResponse().getStatusString());
        assertTrue(cb.getResponse().getStatusString().contains("May not dynamically modify"));
    }
View Full Code Here

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

        assertTrue(callbackSuccess);

        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-security-no-users.xml");
        // Try to change the schem setting
        SyncCallback cb = new SyncCallback();
        client.updateApplicationCatalog(cb, null, new File(deploymentURL));
        cb.waitForResponse();
        assertEquals(ClientResponse.GRACEFUL_FAILURE, cb.getResponse().getStatus());
        System.out.println(cb.getResponse().getStatusString());
        assertTrue(cb.getResponse().getStatusString().contains("Unable to update"));
    }
View Full Code Here

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

        CatalogUpgradeTools.dorkJar(upgradeCatalogJarPath, tweakedJarPath, null);

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

        CatalogUpgradeTools.dorkJar(upgradeCatalogJarPath, tweakedJarPath, "CREATE SQUIZZLE");

        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
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.