Project

Profile

Help

Bug #4788

closed

Exception thrown in ExtensionFunctionCall prevents thread pool shutdown

Added by Eryk Rzeźnik about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Multithreading
Sprint/Milestone:
-
Start date:
2020-10-08
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, 9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

When exception is thrown in ExtensionFunctionCall.call method used inside for-each with multi-threaded processing enabled (saxon:threads attribute) then uderlying thread pool is not shutdow.

After running example (files: SaxonThreads.java, test.xslt, input.xml) you should be able to reproduce this problem. On attached screenshot (threads_count.jpg) from jconsole you can see number of threads in example program, after first few iterations exception is being thrown, and from this moment number of threads only increases.

Tested on version 9.7.0.21 and 9.9.1.7 with EE-T license.


Files

threads_count.jpg (33.3 KB) threads_count.jpg Eryk Rzeźnik, 2020-10-08 11:42
SaxonThreads.java (3.09 KB) SaxonThreads.java Eryk Rzeźnik, 2020-10-08 11:42
input.xml (631 Bytes) input.xml Eryk Rzeźnik, 2020-10-08 11:42
test.xslt (482 Bytes) test.xslt Eryk Rzeźnik, 2020-10-08 11:42

Please register to edit this issue

Also available in: Atom PDF