java.lang.InterruptedException

Jenkins JIRA | Hiroko Tamagawa | 4 years ago
  1. 0

    When using Amazon EC2 plugin, builds on newly created EC2 instances sometimes hang. We have two permanent slaves for a certain label (e.g. 'unittest'), which is generated from an AMI. The same AMI is specified within Amazon EC2 plugin settings. We have a job which can be executed concurrently When we invoke three builds at one time, two permanent slaves are exhausted and the new one is created. The problem is that the build on the new slave hangs at the end of it where xUnit plugin is aggregating the test result. {noformat} [CHECKSTYLE] Collecting checkstyle analysis files... [CHECKSTYLE] Computing warning deltas based on reference build #850 [FINDBUGS] Collecting findbugs analysis files... [FINDBUGS] Computing warning deltas based on reference build #850 Archiving artifacts [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing JUnit [xUnit] [INFO] - [JUnit] - 581 test report file(s) were found with the pattern '**/testresult/**/*.xml' relative to '/var/lib/jenkins/workspace/400_Precommit_Check_Branch' for the testing framework 'JUnit'. {noformat} After aborting the build, the following error is shown. {noformat} ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.InterruptedException at java.lang.Object.wait(Native Method) at hudson.remoting.Request.call(Request.java:146) at hudson.remoting.Channel.call(Channel.java:665) at hudson.FilePath.act(FilePath.java:841) at hudson.FilePath.act(FilePath.java:825) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Email was triggered for: Failure Sending email for trigger: Failure {noformat} I tried to capture the thread dump, but both master and the target slave had EMPTY thread dump while another slave had its own. I'd appreciate if someone give me advice. Jenkins ver. 1.491 xUnit plugin 1.51 Amazon EC2 plugin 1.17

    Jenkins JIRA | 4 years ago | Hiroko Tamagawa
    java.lang.InterruptedException
  2. 0

    When using Amazon EC2 plugin, builds on newly created EC2 instances sometimes hang. We have two permanent slaves for a certain label (e.g. 'unittest'), which is generated from an AMI. The same AMI is specified within Amazon EC2 plugin settings. We have a job which can be executed concurrently When we invoke three builds at one time, two permanent slaves are exhausted and the new one is created. The problem is that the build on the new slave hangs at the end of it where xUnit plugin is aggregating the test result. {noformat} [CHECKSTYLE] Collecting checkstyle analysis files... [CHECKSTYLE] Computing warning deltas based on reference build #850 [FINDBUGS] Collecting findbugs analysis files... [FINDBUGS] Computing warning deltas based on reference build #850 Archiving artifacts [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing JUnit [xUnit] [INFO] - [JUnit] - 581 test report file(s) were found with the pattern '**/testresult/**/*.xml' relative to '/var/lib/jenkins/workspace/400_Precommit_Check_Branch' for the testing framework 'JUnit'. {noformat} After aborting the build, the following error is shown. {noformat} ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.InterruptedException at java.lang.Object.wait(Native Method) at hudson.remoting.Request.call(Request.java:146) at hudson.remoting.Channel.call(Channel.java:665) at hudson.FilePath.act(FilePath.java:841) at hudson.FilePath.act(FilePath.java:825) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Email was triggered for: Failure Sending email for trigger: Failure {noformat} I tried to capture the thread dump, but both master and the target slave had EMPTY thread dump while another slave had its own. I'd appreciate if someone give me advice. Jenkins ver. 1.491 xUnit plugin 1.51 Amazon EC2 plugin 1.17

    Jenkins JIRA | 4 years ago | Hiroko Tamagawa
    java.lang.InterruptedException
  3. 0

    [JIRA] [ec2-plugin] (JENKINS-15931) Build is hanging on newly created EC2 slaves

    Google Groups | 11 months ago | francisu@gmail.com (JIRA)
    java.lang.InterruptedException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, I've recently updated Jenkins to 2.9 (from 2.6), including all slave.jars and all plugins with their most recent versions. All of suddenly, job started at one particular slave hangs at xunit processing, which worked OK so far. This is what I see in job console: ... Build step 'Conditional steps (multiple)' marked build as failure Archiving artifacts \[xUnit\] \[INFO\] - Starting to record. \[xUnit\] \[INFO\] - Processing Custom Tool \[xUnit\] \[INFO\] - \[Custom Tool\] - 1 test report file(s) were found with the pattern 'Reports\unpacked\*_build-5481.rxlog.data' relative to 'c:\Jenkins\workspace\SecurexMonitoring' for the testing framework 'Custom Tool'. From time to time, the xunit processing finishes after unusually long period of time. But in most cases, I need to kill the job manually, because it blocks other jobs. Virtually the same works fine on two other slave machines. The only difference between the slaves is that the not-working one is located in different data center. But it was there also before. The response time of the problematic slave is around 150ms, so it should not be an issue either? Jenkins configuration should be the same on all three slaves. Once I kill the 'hanged' job, it throws this exception to master console: Jun 14, 2016 12:45:27 PM WARNING hudson.model.AbstractBuild$AbstractBuildExecution reportError Step ‘Publish xUnit test result report’ aborted due to exception: java.lang.InterruptedException at java.lang.Object.wait(Native Method) at hudson.remoting.Request.call(Request.java:147) at hudson.remoting.Channel.call(Channel.java:780) at hudson.FilePath.act(FilePath.java:1007) at hudson.FilePath.act(FilePath.java:996) at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:145) at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:88) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:142) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:134) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Any idea what could be the cause of this problem or what to try to fix it? Feel free to let me know if you need more details. PS: added slave thread dump

    Jenkins JIRA | 6 months ago | Pavel Kudrys
    java.lang.InterruptedException

  1. treefolk 1 times, last 1 week ago
  2. danleyb2Interintel 1 times, last 2 weeks ago
  3. filpgame 1 times, last 1 month ago
  4. Nikolay Rybak 4 times, last 4 months ago
  5. Handemelindo 1 times, last 4 months ago
6 more registered users
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.InterruptedException

    No message provided

    at java.lang.Object.wait()
  2. Java RT
    Object.wait
    1. java.lang.Object.wait(Native Method)
    1 frame
  3. Hudson :: Remoting Layer
    Channel.call
    1. hudson.remoting.Request.call(Request.java:146)
    2. hudson.remoting.Channel.call(Channel.java:665)
    2 frames
  4. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:841)
    2. hudson.FilePath.act(FilePath.java:825)
    2 frames
  5. org.jenkinsci.plugins
    XUnitPublisher.perform
    1. org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170)
    2. org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115)
    3. org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92)
    3 frames
  6. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
    6. hudson.model.Run.execute(Run.java:1541)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames