Bug 424976 - Polling trigger fails to recover and trigger other pollers if it encounters a malfunctioning poller
Summary: Polling trigger fails to recover and trigger other pollers if it encounters ...
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-06 21:09 EST by David Le CLA
Modified: 2014-01-06 21:15 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Le CLA 2014-01-06 21:09:18 EST
Hi,

I've encountered a weird problem today.

The thing is that I configured a job to poll on git SCM every 5 minutes.  But the Polling never happen.

When I look at the Polling Log, it said "polling has not run yet".

I bounced the server and the polling start to work.

However, it only run once after the re-bounce.

After some debugging I found that the "Hudson cron thread 1" thread throw an exception with thread being blocks.

Below is a stack trace on the "Hudson cron thread".

Apparently, this was due to one of a newer version of URL Change plugin, version 1.4-h-2.

I disabled this URL Change plugin version and things work like a charm.

However, filing this bug after a discussion with Winston.  Per Winston, Cron thread should be recoverable if a particular poll fails.

Thanks,

David


State: RUNNABLE
Total blocked: 12  Total waited: 230

Stack trace: 
 java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
java.io.File.isDirectory(File.java:754)
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:65)
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
   - locked sun.net.www.protocol.file.FileURLConnection@14b5281d
java.net.URL.openStream(URL.java:1010)
com.redfin.hudson.UrlChangeTrigger.run(UrlChangeTrigger.java:80)
hudson.triggers.Trigger.checkTriggers(Trigger.java:236)
hudson.triggers.Trigger$Cron.doRun(Trigger.java:185)
hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:43)
java.util.TimerThread.mainLoop(Timer.java:512)
java.util.TimerThread.run(Timer.java:462)