Package org.voltdb.exceptions

Examples of org.voltdb.exceptions.EEException


                results[ii] = (VoltTable)deserializer.readObject(resultTable, this);
            }
            return results;
        } catch (final IOException ex) {
            LOG.error("Failed to deserialze result table for getStats" + ex);
            throw new EEException(ERRORCODE_WRONG_SERIALIZED_BYTES);
        }
    }
View Full Code Here


            final VoltTable resultTable = PrivateVoltTableFactory.createUninitializedVoltTable();
            cache[0] = (VoltTable)deserializer.readObject(resultTable, this);
            return (cache[0]);
        } catch (final IOException ex) {
            LOG.error("Failed to deserialze result table for getStats" + ex);
            throw new EEException(ERRORCODE_WRONG_SERIALIZED_BYTES);
        }
    }
View Full Code Here

            final VoltTable resultTable = PrivateVoltTableFactory.createUninitializedVoltTable();
            cache[1] = (VoltTable)deserializer.readObject(resultTable, this);
            return (cache[1]);
        } catch (final IOException ex) {
            LOG.error("Failed to deserialze result table for getStats" + ex);
            throw new EEException(ERRORCODE_WRONG_SERIALIZED_BYTES);
        }
    }
View Full Code Here

                results[ii] = (VoltTable)deserializer.readObject(resultTable, this);
            }
            return results[0];
        } catch (final IOException ex) {
            LOG.error("Failed to deserialze result table for antiCacheEvictBlock" + ex);
            throw new EEException(ERRORCODE_WRONG_SERIALIZED_BYTES);
        }
    }
View Full Code Here

                results[ii] = (VoltTable)deserializer.readObject(resultTable, this);
            }
            return results[0];
        } catch (final IOException ex) {
            LOG.error("Failed to deserialze result table for antiCacheEvictBlock" + ex);
            throw new EEException(ERRORCODE_WRONG_SERIALIZED_BYTES);
        }
  }
View Full Code Here

                new VoltTable.ColumnInfo("bearhugg", VoltType.STRING)
        );
        table.addRow("sandimashighschoolfootballrules");

        FragmentResponseMessage fr = new FragmentResponseMessage(ft, 23);
        fr.setStatus(FragmentResponseMessage.UNEXPECTED_ERROR, new EEException(1));
        fr.addDependency(99, table);

        FragmentResponseMessage fr2 = (FragmentResponseMessage) checkVoltMessage(fr);

        assertEquals(fr.getExecutorSiteId(), fr2.getExecutorSiteId());
View Full Code Here

            for (int i = 0; i < remoteHSIds.length; i++) {
                FragmentResponseMessage resp =
                    new FragmentResponseMessage(plan.remoteWork, remoteHSIds[i]);
                if (rollback && i == (remoteHSIds.length - 1)) {
                    resp.setStatus(FragmentResponseMessage.UNEXPECTED_ERROR,
                                   new EEException(1234));
                }
                else {
                    resp.setStatus(FragmentResponseMessage.SUCCESS, null);
                    for (int j = 0; j < distributedOutputDepIds.size(); j++) {
                        resp.addDependency(distributedOutputDepIds.get(j),
View Full Code Here

        // to simplify, offer messages first
        // offer all the necessary fragment responses to satisfy deps
        // just be lazy and perturb the buddy response here
        plan.generatedResponses.get(plan.generatedResponses.size() - 1).
             setStatus(FragmentResponseMessage.UNEXPECTED_ERROR, new EEException(1234));
        for (FragmentResponseMessage msg : plan.generatedResponses) {
            System.out.println("Offering response: " + msg);
            dut.offerReceivedFragmentResponse(msg);
        }
View Full Code Here

                        resultTables[ii] = PrivateVoltTableFactory.createUninitializedVoltTable();
                    }
                    try {
                        m_connection.readResultTables(resultTables);
                    } catch (final IOException e) {
                        throw new EEException(
                                ExecutionEngine.ERRORCODE_WRONG_SERIALIZED_BYTES);
                    }
                    return resultTables;
                }
                else {
View Full Code Here

            System.out.println("Exception: " + e.getMessage());
            throw new RuntimeException(e);
        }

        if (result != ExecutionEngine.ERRORCODE_SUCCESS) {
            throw new EEException(result);
        }

        ByteBuffer responseBuffer = null;
        try {
            responseBuffer = readMessage();
View Full Code Here

TOP

Related Classes of org.voltdb.exceptions.EEException

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.