Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.QueryCanceledException


        }
        catch (InterruptedException ex)
        {
            output.putNull();
            if (context.getQueryContext().getSession().isCurrentQueryCanceled())
                throw new QueryCanceledException(context.getQueryContext().getSession());
            throw new AkibanInternalException("InteruptedException " + ex);
        }
    }
View Full Code Here


                if (sleepTime > 0) {
                    try {
                        Thread.sleep(sleepTime);
                    }
                    catch (InterruptedException ex) {
                        throw new QueryCanceledException(session);
                    }
                }
                nextCommitTime = txn.getStartTime() + scanTimeLimit;
                // Start at key, non-inclusive, snapshot
                getStore().indexIterator(session, storeData, true, false, false, true);
View Full Code Here

    }

    public static RuntimeException wrapFDBException(Session session, Exception e)
    {
        if (isFromInterruption(e)) {
            return new QueryCanceledException(session);
        } else if (e instanceof FDBException) {
            FDBException fdbEx = (FDBException)e;
            switch (fdbEx.getCode()) {
            case 1007:          // past_version
                return new FDBPastVersionException(fdbEx);
View Full Code Here

            String line;
            try {
                line = output.poll(TIMEOUT, TimeUnit.MILLISECONDS);
            }
            catch (InterruptedException ex) {
                throw new QueryCanceledException(context.getSession());
            }
            if (line == null)
                return Collections.<String>emptyList();
            else if (line == EOF)
                return null;
View Full Code Here

                        Thread.sleep(TIMEOUT);
                    }

                } catch (InterruptedException ex) {
                    stopTask();
                    throw new QueryCanceledException(session);
                } catch (Exception e) {
                    messages.add(e.toString());
                    stopTask();
                    done = true;
                }
View Full Code Here

                if (sleepTime > 0) {
                    try {
                        Thread.sleep(sleepTime);
                    }
                    catch (InterruptedException ex) {
                        throw new QueryCanceledException(session);
                    }
                }
                nextCommitTime = txn.getStartTime() + scanTimeLimit;
                indexIterator(session, storeData, false, false);
            }           
View Full Code Here

                    if (sleepTime > 0) {
                        try {
                            Thread.sleep(sleepTime);
                        }
                        catch (InterruptedException ex) {
                            throw new QueryCanceledException(session);
                        }
                    }
                    txnService.beginTransaction(session);
                    nextCommitTime = System.currentTimeMillis() + scanTimeLimit;
                }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.QueryCanceledException

Copyright © 2018 www.massapicom. 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.