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

Blacklist certain classes from loading in slaves

      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.

          [JENKINS-26677] Blacklist certain classes from loading in slaves

          Kohsuke Kawaguchi created issue -
          Kohsuke Kawaguchi made changes -
          Link New: This issue is related to JENKINS-26476 [ JENKINS-26476 ]
          Jesse Glick made changes -
          Labels New: classloader robustness
          Jesse Glick made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160752 ] New: JNJira + In-Review [ 180473 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-35184 [ JENKINS-35184 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-38370 [ JENKINS-38370 ]
          Robert Klaus made changes -
          Link New: This issue relates to JENKINS-39669 [ JENKINS-39669 ]
          Liam Newman made changes -
          Link New: This issue relates to JENKINS-38371 [ JENKINS-38371 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-43314 [ JENKINS-43314 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-46386 [ JENKINS-46386 ]

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

              Created:
              Updated: