-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Await Barrier never releases #10
Comments
FYI, I also tried your sample, and it displays the exact same behaviour
|
@imavroukakis I will look at this issue. |
@imavroukakis def numberOfTestNodes = 5
def testBarrier = createBarrier count: numberOfTestNodes; // 5 in my case
def testGroups = [:]
Random rand = new Random()
script {
for (int i = 0; i < numberOfTestNodes; i++) {
def num = i
testGroups["node $num"] = {
//node('workers') {
random_num = rand.nextInt(20+1)
sleep random_num
// do some prep work
awaitBarrier barrier: testBarrier, timeout: 5, unit: 'SECONDS'
// main work goes here
//}
}
}
parallel testGroups
} |
I have the same issue on basic examples from readme. It worked and after dozen runs stopped. Restart jenkins helps |
could it be a thread-related limitation for cyclicbarrier? I have no such issues when doing a similar test with the countdownlatch |
Same issue, can't create barrier greater than 3, the barrier never registers the additional parties and all threads block, also a large number of threads gets created and i can't create any new jobs until jenkins server restart ! Is it related to any plugin that's causing the problem, or the thread maximum needs an increase ? |
For everyone who still facing this issue. It is caused by limited number of threads in ForkJoinPool on jenkins master node. |
@ijrandom |
Hello! I'm trying to wait for a barrier within a
script
section, but it seems to hang there forever, even when I set a timeout. My code looks something like this, nested within a declarative pipelinesteps{}
block.In the Jenkins build console log, I can see
awaitBarrier
being printed out, but it hangs on the last one forever. I counted them and there are definitely 5 instances ofawaitBarrier
printed out.I'm using version 1.0.0 of the plugin in Jenkins 2.219
Thanks!
The text was updated successfully, but these errors were encountered: