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

XST can not download large document/collection sets #236

Open
dizzzz opened this issue Aug 21, 2024 · 1 comment
Open

XST can not download large document/collection sets #236

dizzzz opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dizzzz
Copy link
Member

dizzzz commented Aug 21, 2024

What happened?

When downloading a collection with a lot of resources (documents, collections recursively), xst stops after 3000+ files.

eg

Γ£ÿ AA.xml could not be created! Reason: connect ENOBUFS 1.2.3.4:8080 - Local (undefined:undefined)
Γ£ÿ BB.xml could not be created! Reason: connect ENOBUFS 1.2.3.4:8080 - Local (undefined:undefined)
Γ£ÿ CC.xml could not be created! Reason: connect ENOBUFS 1.2.3.4:8080 - Local (undefined:undefined)

the process stops with

Γ£ÿ c5b327080fd4d751bbc4d19160dc8a49.xsd could not be created! Reason: aborted
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: aborted
    at Socket.socketCloseListener (node:_http_client:460:19)
    at Socket.emit (node:events:531:35)
    at TCP.<anonymous> (node:net:338:12) {
  code: 'ECONNRESET'
}

Node.js v20.14.0

System Information

Build: eXist-6.2.0 (c8fa4958b6d4a50bd0cba7f3e76a150226414187)
Java: 1.8.0_275 (Red Hat, Inc.)
OS: Linux 2.6.32-754.50.1.el6.x86_64 (amd64)

Relevant shell output

Γ£ÿ c5b327080fd4d751bbc4d19160dc8a49.xsd could not be created! Reason: aborted
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: aborted
    at Socket.socketCloseListener (node:_http_client:460:19)
    at Socket.emit (node:events:531:35)
    at TCP.<anonymous> (node:net:338:12) {
  code: 'ECONNRESET'
@dizzzz dizzzz added the bug Something isn't working label Aug 21, 2024
@line-o
Copy link
Member

line-o commented Aug 22, 2024

Thanks for bringing this up @dizzzz . While xst upload already features a queue to not overload a connected database with jobs, this is not yet the case for the download command.

So I suspect that exist-db flat out refuses any more connections after several thousand are already opened. This is what happened on uploads, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants