Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.AkibanInternalException


                        if(indexInfo != null) {
                            indexInfo.commitIndexer();
                            indexInfo = null;
                        }
                    } catch(IOException e) {
                        throw new AkibanInternalException("Error updating index", e);
                    } finally {
                        if(indexInfo != null) {
                            try {
                                indexInfo.rollbackIndexer();
                            } catch(IOException e) {
View Full Code Here


            Field field = TypeId.class.getField(name);
            // assume public and static. If not, Field.get will fail, which is all we can do anyway.
            Object instance = field.get(null);
            return (TypeId) instance;
        } catch (Exception e) {
            throw new AkibanInternalException("while getting field " + name, e);
        }
    }
View Full Code Here

                        throw e;
                    }
                } catch(RuntimeException e) {
                    throw e;
                } catch(Exception e) {
                    throw new AkibanInternalException("Unexpected Exception", e);
                } finally {
                    rollbackTransactionIfOpen(session);
                }
                // TODO: Back-off?
            }
View Full Code Here

        byte[] prefix;
        try {
            prefix = configService.getProperty(CONFIG_PREFIX).getBytes("ISO-8859-1");
        }
        catch (UnsupportedEncodingException ex) {
            throw new AkibanInternalException("Error encoding prefix", ex);
        }
        dataSubspace = new Subspace(tupleFrom(METRIC_KEY), prefix);
        confSubspace = new Subspace(tupleFrom(METRIC_CONF_KEY), prefix);
        confChangesSubspace = new Subspace(tupleFrom(METRIC_CONF_CHANGES_KEY), prefix);
        // NOTE: Java does not expose a nanosecond wallclock timer, like POSIX
View Full Code Here

                if (BINARY_STRINGS) {
                    try {
                        list.add(new String(tuple.getBytes(i), "UTF-8"));
                    }
                    catch (UnsupportedEncodingException ex) {
                        throw new AkibanInternalException("Error decoding binary string", ex);
                    }
                }
                else {
                    list.add(tuple.getString(i));
                }
View Full Code Here

                        keys[i] = ((String)keys[i]).getBytes("UTF-8");
                    }
                }
            }
            catch (UnsupportedEncodingException ex) {
                throw new AkibanInternalException("Error encoding binary string", ex);
            }
        }
        return Tuple2.from(keys);
    }
View Full Code Here

                    selector = IndexScanSelector
                        .rightJoinUntil(index,
                                        indexScan.getRootMostInnerTable().getTable().getTable());
                    break;
                default:
                    throw new AkibanInternalException("Unknown index join type " +
                                                      index);
                }
            }
            if (index.isSpatial()) {
                stream.operator = API.indexScan_Default(indexRowType,
View Full Code Here

                return IndexKeyRange.spatial(indexRowType,
                                             assembleSpatialIndexPoint(index, bottom, left, fieldOffsets),
                                             assembleSpatialIndexPoint(index, top, right, fieldOffsets));
            }
            else {
                throw new AkibanInternalException("Unrecognized spatial index " + index);
            }
        }
View Full Code Here

            ColumnExpression joinColumn = scan.getOutsideJoinColumn();
            for (ColumnExpressionToIndex boundRow : boundRows) {
                int fieldIndex = boundRow.getIndex(joinColumn);
                if (fieldIndex >= 0) return boundRow;
            }
            throw new AkibanInternalException("Outer loop not found " + scan);
        }
View Full Code Here

            for (ColumnExpressionToIndex boundRow : boundRows) {
                if (boundRowIsForTable(boundRow, table)) {
                    return boundRow;
                }
            }
            throw new AkibanInternalException("Outer loop not found " + table);
        }
View Full Code Here

TOP

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

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.