Package backtype.storm.topology

Examples of backtype.storm.topology.FailedException


        if(input.getSourceStreamId().equals(MasterBatchCoordinator.COMMIT_STREAM_ID)) {
            if(attempt.equals(_activeBatches.get(attempt.getTransactionId()))) {
                ((ICommitterTridentSpout.Emitter) _emitter).commit(attempt);
                _activeBatches.remove(attempt.getTransactionId());
            } else {
                 throw new FailedException("Received commit for different transaction attempt");
            }
        } else if(input.getSourceStreamId().equals(MasterBatchCoordinator.SUCCESS_STREAM_ID)) {
            // valid to delete before what's been committed since
            // those batches will never be accessed again
            _activeBatches.headMap(attempt.getTransactionId()).clear();
View Full Code Here


    @Override
    public void updateState(JmsState jmsState, List<TridentTuple> tuples, TridentCollector collector) {
        try {
            jmsState.updateState(tuples, collector);
        } catch (JMSException e) {
            throw new FailedException("failed JMS opetation", e);
        }
    }
View Full Code Here

        } catch (JMSException e) {
            LOG.warn("Failed to send jmd message for a trident batch ", e);
            if(this.options.jmsTransactional) {
                session.rollback();
            }
            throw new FailedException("Failed to write tuples", e);
        }
    }
View Full Code Here

        if(input.getSourceStreamId().equals(MasterBatchCoordinator.COMMIT_STREAM_ID)) {
            if(attempt.equals(_activeBatches.get(attempt.getTransactionId()))) {
                ((ICommitterTridentSpout.Emitter) _emitter).commit(attempt);
                _activeBatches.remove(attempt.getTransactionId());
            } else {
                 throw new FailedException("Received commit for different transaction attempt");
            }
        } else if(input.getSourceStreamId().equals(MasterBatchCoordinator.SUCCESS_STREAM_ID)) {
            // valid to delete before what's been committed since
            // those batches will never be accessed again
            _activeBatches.headMap(attempt.getTransactionId()).clear();
View Full Code Here

    try {
      updateOffsetToZk(currentOffsets);
      switchOffsetMap();
    }catch(Exception e) {
      LOG.warn("Failed to update offset to ZK", e);
      throw new FailedException(e);
    }
   
    return null;
  }
View Full Code Here

      switchOffsetMap();
      updateOffsetToZk(currentOffsets);
     
    }catch(Exception e) {
      LOG.warn("Failed to update offset to ZK", e);
      throw new FailedException(e);
    }
  }
View Full Code Here

      commitedValue.commit();

      return Utils.serialize(commitedValue);
    } catch (Exception e) {
      LOG.error("Failed to commit " + commitedValue, e);
      throw new FailedException(e);
    }

  }
View Full Code Here

TOP

Related Classes of backtype.storm.topology.FailedException

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.