Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2915

How could I to get the fail Number in Bolt When I use Kafka Spout

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 1.0.2, 1.1.0, 1.0.3, 1.0.4, 1.1.1, 1.0.5
    • None
    • storm-kafka-client
    • None

    Description

      I want to get fail num in bolt , how could  I  to get it? 

      if  fail it  retry, I see This 

      if (!isScheduled || retryService.isReady(msgId)) {
      final String stream = tuple instanceof KafkaTuple ? ((KafkaTuple) tuple).getStream() : Utils.DEFAULT_STREAM_ID;

      if (!isAtLeastOnceProcessing()) {
      if (kafkaSpoutConfig.isTupleTrackingEnforced()) {
      collector.emit(stream, tuple, msgId);
      LOG.trace("Emitted tuple [{}] for record [{}] with msgId [{}]", tuple, record, msgId);
      } else {
      collector.emit(stream, tuple);
      LOG.trace("Emitted tuple [{}] for record [{}]", tuple, record);
      }
      } else {
      emitted.add(msgId);
      offsetManagers.get(tp).addToEmitMsgs(msgId.offset());
      if (isScheduled)

      { // Was scheduled for retry and re-emitted, so remove from schedule. retryService.remove(msgId); }

      collector.emit(stream, tuple, msgId);
      tupleListener.onEmit(tuple, msgId);
      LOG.trace("Emitted tuple [{}] for record [{}] with msgId [{}]", tuple, record, msgId);
      }
      return true;
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            Gergo Hong Gergo Hong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: