Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2674

During the harvester Registration phase the harvester shuts down if its channel ID is unknown

    Details

    • Type: Improvement
    • Status: Ready for release test
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.2
    • Labels:
      None
    • Sprint:
      NAS 5.3.2

      Description

      During the harvester Registration phase the harvester shuts down if its channel ID is unknown

      @Override
          public void visit(HarvesterRegistrationResponse msg) {
              // If we have already started or the message notifies for another channel, resend it.
              String channelName = msg.getHarvestChannelName();
              if (status.isChannelValid() || !CHANNEL.equals(channelName)) {
                  // Controller has already started
                  jmsConnection.resend(msg, msg.getTo());
                  if (log.isTraceEnabled()) {
                      log.trace("Resending harvest channel validity message for channel '{}'", channelName);
                  }
                  return;
              }
      
              if (!msg.isValid()) {
                  log.error("Received message stating that channel '{}' is invalid. Will stop. "
                              + "Probable cause: the channel is not one of the known channels stored in the channels table", channelName);
                  close();
                  return;
              }
      

      It should also send a notification about the problem before shutting down.

        Attachments

          Activity

            People

            • Assignee:
              svc Søren Vejrup Carlsen
              Reporter:
              svc Søren Vejrup Carlsen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1m
                1m