Branch: refs/heads/jep277
  Home:   https://github.com/jenkinsci/gearman-plugin
  Commit: aa736c9eb2a84334dec754d4e0507a2f06dc901e
      
https://github.com/jenkinsci/gearman-plugin/commit/aa736c9eb2a84334dec754d4e0507a2f06dc901e
  Author: Antoine Musso <has...@free.fr>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M pom.xml
    M src/main/java/hudson/plugins/gearman/GearmanPluginUtil.java

  Log Message:
  -----------
  Use modern ACL.as2() to run as SYSTEM

Sometime when invoking the stop function, the management worker thread
would die:

  A thread (Gearman worker 172.17.0.1_manager/563) died unexpectedly due
  to an uncaught exception, this may leave your Jenkins in a bad way and
  is usually indicative of a bug in the code.
  java.lang.StackOverflowError
    at 
org.acegisecurity.context.SecurityContext$1.getAuthentication(SecurityContext.java:46)
    at 
org.acegisecurity.context.SecurityContext$2.getAuthentication(SecurityContext.java:60)
    at 
org.acegisecurity.context.SecurityContext$1.getAuthentication(SecurityContext.java:46)

That started happening after we upgraded to the LTS 2.277 series and I
thus highly suspect it is related to JEP-227:
https://github.com/jenkinsci/jep/blob/master/jep/227/README.adoc

Replace impersonate calls with the modern ACL.as2() introduced in
Jenkins 2.266.

Bump Jenkins requirement to current LTS series (2.277).


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-commits+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/gearman-plugin/push/refs/heads/jep277/000000-aa736c%40github.com.

Reply via email to