Examples of UncaughtHandler


Examples of com.foundationdb.server.test.mt.util.ThreadHelper.UncaughtHandler

    private void expectSuccess(List<MonitoredThread> threads) {
        ThreadHelper.runAndCheck(threads);
    }

    private void expectOneFailure(List<MonitoredThread> threads) {
        UncaughtHandler handler = ThreadHelper.startAndJoin(threads);
        assertEquals("failure count", 1, handler.thrown.size());
        Throwable failure = handler.thrown.values().iterator().next();
        assertEquals("failure was dup", DuplicateKeyException.class, failure.getClass());
        assertEquals("saw rollback", true, threads.get(0).hadRollback() || threads.get(1).hadRollback());
    }
View Full Code Here

Examples of com.foundationdb.server.test.mt.util.ThreadHelper.UncaughtHandler

    protected  void dmlPreToPostMetadata_Check(List<MonitoredThread> threads,
                                               List<Row> expectedRows,
                                               boolean isDMLFailing,
                                               boolean skipInternalColumns) {
        if(isDMLFailing) {
            UncaughtHandler handler = ThreadHelper.startAndJoin(threads);
            assertEquals("ddl failure", null, handler.thrown.get(threads.get(0)));
        } else {
            ThreadHelper.runAndCheck(threads);
        }
        new TimeMarkerComparison(threads).verify("DML:PRE_BEGIN",
View Full Code Here

Examples of com.foundationdb.server.test.mt.util.ThreadHelper.UncaughtHandler

            .sync("b", ThreadMonitor.Stage.POST_SCAN)
            .mark(ThreadMonitor.Stage.POST_BEGIN, ThreadMonitor.Stage.PRE_COMMIT)
            .rollbackRetry(!isDMLFailing)
            .build(this, descriptors, columnNames, server);
        if(isDMLFailing) {
            UncaughtHandler handler = ThreadHelper.startAndJoin(threads);
            assertEquals("ddl failure", null, handler.thrown.get(threads.get(0)));
        } else {
            ThreadHelper.runAndCheck(threads);
        }
        new TimeMarkerComparison(threads).verify("DML:POST_BEGIN",
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.