Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26677

Blacklist certain classes from loading in slaves

    XMLWordPrintable

Details

    Description

      Classes from servlet container (such as HttpServletRequest) are not guaranteed to be remotable. For example, it could be because the container classloader hides the class file from RemoteClassLoader. Or it could be that the servlet container uses a newer versions of JDK than the slave JVM.

      Therefore, instead of letting these classes transferred to slave JVM, we should come up with a blacklist that causes the master to immediately refuse to send the class file image.

      That way, the tests we run can catch the problem, instead of leaving it up to a small number of unlucky users to discover them.

      This is expected to improve the "I got NoClassDefFoundError: class Xyz failed to load but I don't know why it failed to load" problem, which is hard to diagnose because the exception is missing the root cause.

      Attachments

        Issue Links

          Activity

            kohsuke Kohsuke Kawaguchi created issue -
            kohsuke Kohsuke Kawaguchi made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-26476 [ JENKINS-26476 ]
            jglick Jesse Glick made changes -
            Labels classloader robustness
            jglick Jesse Glick made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 160752 ] JNJira + In-Review [ 180473 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-35184 [ JENKINS-35184 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-38370 [ JENKINS-38370 ]
            robert Robert Klaus made changes -
            Link This issue relates to JENKINS-39669 [ JENKINS-39669 ]
            bitwiseman Liam Newman made changes -
            Link This issue relates to JENKINS-38371 [ JENKINS-38371 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-43314 [ JENKINS-43314 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-46386 [ JENKINS-46386 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-40863 [ JENKINS-40863 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 3778 (Web Link)" [ 22061 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-61787 [ JENKINS-61787 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-19453 [ JENKINS-19453 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-62006 [ JENKINS-62006 ]

            People

              Unassigned Unassigned
              kohsuke Kohsuke Kawaguchi
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: