Skip to content
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

Investigate retrieving URIs #31

Open
adamretter opened this issue Jul 1, 2022 · 0 comments
Open

Investigate retrieving URIs #31

adamretter opened this issue Jul 1, 2022 · 0 comments

Comments

@adamretter
Copy link
Member

The XQTS causes eXist-db to try and retrieve some resources using its URLSource class.

These resources are not available via the Web. We should investigate whether eXist-db should be retrieving these itself, or whether they should be injected by the XQTS into the XQueryContext as available documents/resources.

Examples of warnings output by eXist-db when running the XQTS:

01 Jul 2022 10:25:51,961 [pool-4-thread-1] WARN  (URLSource.java [getInputStream]:196) - URL 'http://www.w3.org/fots/unparsed-text/non-xml-character.txt' could not be opened: http://www.w3.org/fots/unparsed-text/non-xml-character.txt
01 Jul 2022 10:25:52,224 [pool-4-thread-1] WARN  (URLSource.java [getInputStream]:196) - URL 'http://www.w3.org/fots/unparsed-text/text-plain-utf-16le-bom.txt' could not be opened: http://www.w3.org/fots/unparsed-text/text-plain-utf-16le-bom.txt 
01 Jul 2022 10:25:52,466 [pool-8-thread-1] WARN  (URLSource.java [getInputStream]:196) - URL 'http://www.w3.org/fots/unparsed-text/text-plain-utf-8-invalid.txt' could not be opened: http://www.w3.org/fots/unparsed-text/text-plain-utf-8-invalid.txt 
01 Jul 2022 10:25:52,779 [pool-8-thread-1] WARN  (URLSource.java [getInputStream]:196) - URL 'http://www.w3.org/fots/unparsed-text/text-plain-utf-8-bom-lines-2.txt' could not be opened: http://www.w3.org/fots/unparsed-text/text-plain-utf-8-bom-lines-2.txt 
01 Jul 2022 10:25:53,189 [pool-8-thread-1] WARN  (URLSource.java [getInputStream]:196) - URL 'http://www.w3.org/fots/unparsed-text/text-plain-utf-16be-bom-lines.txt' could not be opened: http://www.w3.org/fots/unparsed-text/text-plain-utf-16be-bom-lines.txt 

Note, it may be that retrieving such resources takes time via Java's URLConnection until a timeout is reached. We should investigate how timeouts are set in eXist-db's URLSource and consider making the timeouts configurable; at which point the XQTS should set a low'ish value for the timeout to reduce its runtime when resources are unavailable.

@adamretter adamretter changed the title Investigate retrieving URIs like Investigate retrieving URIs Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant