Package voldemort

Examples of voldemort.VoldemortException


                                                  DEFAULT_MAX_FAULTY_NODES));

        try {
            this.bootstrapURL = props.getString("streaming.platform.bootstrapURL");
        } catch(UndefinedPropertyException e) {
            throw new VoldemortException("BootStrap URL Not defined");
        }

        validateParams();

    }
View Full Code Here


                DataOutputStream outputStream = sands.getOutputStream();
                ProtoUtils.writeMessage(outputStream, adminRequest);
                outputStream.flush();
            } catch(IOException e) {
                helperOps.close(sands.getSocket());
                throw new VoldemortException(e);
            } finally {
                socketPool.checkin(destination, sands);
            }
        }
View Full Code Here

                for(int partitionId: node.getPartitionIds()) {
                    List<Integer> replicatingPartitions = strategy.getReplicatingPartitionList(partitionId);
                    List<Integer> extraCopyReplicatingPartitions = Lists.newArrayList(replicatingPartitions);

                    if(replicatingPartitions.size() <= 1) {
                        throw new VoldemortException("Store "
                                                     + storeDef.getName()
                                                     + " cannot be restored from replica because replication factor = 1");
                    }

                    if(replicatingPartitions.removeAll(restoringNodePartition)) {
                        if(replicatingPartitions.size() == 0) {
                            throw new VoldemortException("Found a case where-in the overlap of "
                                                         + "the node partition list results in no replicas "
                                                         + "being left in replicating list");
                        }

                        addDonorWithZonePreference(replicatingPartitions,
View Full Code Here

                } else {
                    index++;
                }
            }
            if(!found) {
                throw new VoldemortException("unable to find a node to fetch partition "
                                             + partitionId + " for store " + storeDef.getName());
            }
            partitionId = originalPartitions.get(0);
            List<Integer> partitionIds = null;
            if(donorMap.containsKey(nodeId)) {
View Full Code Here

     */
    public void checkin(SocketDestination destination, SocketAndStreams socket) {
        try {
            pool.checkin(destination, socket);
        } catch(Exception e) {
            throw new VoldemortException("Failure while checking in socket for " + destination
                                         + ": ", e);
        }
    }
View Full Code Here

            future.get();

        } catch(InterruptedException e1) {

            logger.error("Callback failed", e1);
            throw new VoldemortException("Callback failed");

        } catch(ExecutionException e1) {

            logger.error("Callback failed during execution", e1);
            throw new VoldemortException("Callback failed during execution");
        }

    }
View Full Code Here

                                out.writeChars(ByteUtils.toHexString(keyBytes) + "\n");
                            }
                        }
                    });
                } else {
                    throw new VoldemortException("Invalid format \'" + format + "\'.");
                }

                if(outFile != null) {
                    System.out.println("Fetched keys from " + store + " to " + outFile);
                }
View Full Code Here

        try {
            for(Versioned<byte[]> item: found)
                results.add(new Versioned<byte[]>(IOUtils.toByteArray(new GZIPInputStream(new ByteArrayInputStream(item.getValue()))),
                                                  item.getVersion()));
        } catch(IOException e) {
            throw new VoldemortException(e);
        }

        return results;
    }
View Full Code Here

            getInnerStore().put(key,
                                new Versioned<byte[]>(IOUtils.toByteArray(new GZIPInputStream(new ByteArrayInputStream(value.getValue()))),
                                                      value.getVersion()),
                                transforms);
        } catch(IOException e) {
            throw new VoldemortException(e);
        }
    }
View Full Code Here

     * Initializes parser
     *
     * @throws Exception
     */
    protected static OptionParser getParser() throws Exception {
        throw new VoldemortException("Parser initializer not implemented.");
    }
View Full Code Here

TOP

Related Classes of voldemort.VoldemortException

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.