Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-396

The logic of Thrift multiplexedProcessor registers mutil processor isn't correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • None
    • None

    Description

      The sentry service uses multiplexedProcessor to register multi processor, but the logic isn't correct in my opinion. It use processFactory to register and the source code as following:

      TMultiplexedProcessor processor = new TMultiplexedProcessor();
      boolean registeredProcessor = false;
      for (String processorFactory : processorFactories){
          ProcessorFactory factory = (ProcessorFactory) #create factory instance with processorFactory name
      	registeredProcessor = registeredProcessor || factory.register(processor);
      }

      If the first factory register successfully, registeredProcessor will become true then the following factories don't get the chance to register

      Attachments

        1. SENTRY-396.patch
          1.0 kB
          shenguoquan

        Activity

          People

            guoquan shenguoquan
            guoquan shenguoquan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: