Closed ivanbacher closed 1 week ago
Setting the timeout to 1
Seems to be working for deleting a collection.
creating data
creating collection
importing into collection
time taken: 16.611135839000344s
deleting collection
Request #1695217761007: Request to Node 0 failed due to "ECONNABORTED timeout of 1000ms exceeded"
Request #1695217761007: Sleeping for 0.1s and then retrying request...
Request #1695217761007: Request to Node 0 failed due to "ECONNABORTED timeout of 1000ms exceeded"
@ivanbacher As of 1.7.0-1
, we've disabled timeouts from kicking in for imports, because you almost never want to interrupt an import API call as it's executing, since that leads to stale data on the Typesense server, and multiple duplicate imports.
Other endpoints like delete still use the timeout setting.
Ah super. thanks for the info.
I still get this error though when doing a bulk import
[21-09-2023 08:04:07] - info: Typesense-Controller: Importing entries (3483) to collection documents
[21-09-2023 08:04:09] - info: Typesense-Controller: Importing entries (16646) to collection pages
[21-09-2023 08:04:09] - info: Typesense-Controller: Importing entries (18080) to collection annotations
Request #1695279850091: Request to Node 0 failed due to "ECONNRESET socket hang up"
Request #1695279850091: Sleeping for 0.1s and then retrying request...
Now I have double the data in the annotations
collection
This only occurs on the VM I am running typesense on (2 cpus). If I run the same code on my local machine (macbook pro) then there is no error
It's possible that CPU is being saturated... Could you try on a 4 core machine?
Tried with a 4 core machine and still getting the same error
Could you share about 100 lines from the Typesense logs around the time when the socket hang happens?
Description
Init client and set
connectionTimeoutSeconds
to 10. Create a bulk data import. Time this using node.js timers.No timeout error or warning
Steps to reproduce
output:
Expected Behavior
Raise timeout error
Actual Behavior
No timeout error or warning
Metadata
Typesense Version: 0.25.1
OS: Docker Container running on MacOs