Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40749

Kernel > realms refresh queue uses a HashMap

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 11.4, 12.4, 19.0
    • Fix Version/s: 19.0
    • Component/s: Kernel
    • Labels:
      None
    • 12 status:
      Please Merge
    • Test Plan:
      Hide

      This is a safe change that cannot be directly tested, but site creation as well as site duplication should be tested to ensure no unexpected behavior.

      Show
      This is a safe change that cannot be directly tested, but site creation as well as site duplication should be tested to ensure no unexpected behavior.

      Description

      The queue that is used for scheduling realm refresh tasks is a HashMap that has it's values iterated over. The order of a HashMap is not intended to be defined, and as of Java 8 is no longer predictable. This causes jobs in the queue to be executed in "random" order. This should to be changed to a LinkedHashMap.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bjones86 Brian Jones
                Reporter:
                bjones86 Brian Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code