Deadlock at org.geotools.xsd.XSD.getSchema

Description

You can check on the thread dump that we have a runnable thread opening a ZIP file, while all the other threads are blocked trying to get a xsd schema.

Runnable thread:

One of the blocked threads:

Environment

None

Attachments

3

Activity

Andrea Aime August 27, 2021 at 5:30 PM

Should be fixed now, see discussion on your original PR and replacement PR.
I backported the fix also on 24.x, but mind, there is no other 2.18.x release in the plans (that said , it sometimes happen we make an extra one, if it it finds a sponsor).

Tiago Vieira July 17, 2021 at 11:17 PM

Tiago Vieira July 14, 2021 at 8:27 PM

Ok. We’ll do the PR.

Thanks

Andrea Aime July 14, 2021 at 5:10 PM

You or someone from your organization will have to make the code change, make a pull request that satisfies the checklist, and pass a code review. Once it gets merged on the main branch, you will also have to do the backport PRs. The one thing offered for free by the community is the time spent checking your work, while doing the PR reviews.

Alternatively, you also have the option of hiring someone to do that work on your behalf, see the commercial support page for references.

Tiago Vieira July 14, 2021 at 5:03 PM

Hi , we tested with what you suggested and the deadlocks disappeared.

We don’t know how to measure the cost of this change.

Do you agree with this code block on XSD class? Can you do a PR backporting until version 24.x?

 

Cheers,

Tiago

Fixed

Details

Assignee

Reporter

Triage

Fix versions

Affects versions

Priority

Created July 1, 2021 at 9:58 AM
Updated August 27, 2021 at 5:30 PM
Resolved August 27, 2021 at 5:30 PM