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

getPathsUpdatesFrom() got its boolean logic inversed which results in sending two snapshots at the same time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None

    Description

      As part of SENTRY-1931, we added check not to send two NN snaphsots at the same time. But because of a conditional typo, it results in sending back two snapshots.

          // If another paths updates request is in progress by another HDFS NameNode, then we
          // return an empty image for now to avoid a large memory consumption
          if (pathsRetrieverBusy.compareAndSet(false, true)) {
            LOGGER.debug("PATHS updates are not available because another request is in progress.");
            return Collections.emptyList();
          }
      

      Attachments

        1. SENTRY-1946.01-master.patch
          1.0 kB
          Vamsee K. Yarlagadda

        Issue Links

          Activity

            People

              vamsee Vamsee K. Yarlagadda
              vamsee Vamsee K. Yarlagadda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: