Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2918

rabbitMQ support for extra arguments

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.5.34
    • 2.5.0
    • messaging
    • None

    Description

      Note: see updates below; if your rabbitmq is asking for extra arguments for a queue that already exists, first try setting loader.messaging.settings.autocreate.objects=false in grouper-loader.properties


      If we have an existing rabbitMq queue with feature arguments `x-queue-type: quorum`, the grouper messaging system fails with an error:

      com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-queue-type' for queue 'grouperChangeLog' in vhost '/midPoint': received none but current is the value 'quorum' of type 'longstr', class-id=50, method-id=10)
      

      When the Grouper rabbitmq messaging system creates a channel, it passes null in the extra arguments field. If we could add extra properties in the loader config, and then send them with the channel, this would fix the issue (tested and confirmed).

      E.g.

      changeLog.consumer.rabbitMqMessaging.queueArgs.0.key = x-queue-type
      changeLog.consumer.rabbitMqMessaging.queueArgs.0.value = quorum
      

      Attachments

        Activity

          People

            chad.redman@at.internet2.edu Chad Redman (unc.edu)
            chad.redman@at.internet2.edu Chad Redman (unc.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: