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

Components classloader is dependent on filesystem ordering and so not predictable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.6, 11.0
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1196

      Description

      The building of the classloader for a component is dependent on the order that files are returned from the filesystem. This can lead to unpredictable deployments where one node in a cluster will load different classes to another node.

      Locally we had this issue where the same class was deployed in 2 different JARs and different nodes in our cluster loaded different classes and on some nodes we had the tool fail.

      On linux ext4 File.listFiles() returns the files unsorted, in the order they are stored in the directory.

      On HFS+ on my Mac I would always get the files back alphabetically.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  buckett Matthew Buckett
                  Reporter:
                  buckett Matthew Buckett
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code