questdb / nodejs-questdb-client

QuestDB Node.js Client
37 stars 7 forks source link

Table name already set #39

Open semoal opened 5 days ago

semoal commented 5 days ago

We're seeing this error lately, and for me has no sense... what's the point of view for throwing an error? it could just early return this and will be okay?

https://github.com/questdb/nodejs-questdb-client/blob/1cf1486d42f0823b84714fac604f7837bc8e9b4e/src/sender.js#L467

And by the way, we're seeing this error without calling twice to .table() so it's quite strange why it's happening but that's another story

nwoolmer commented 4 days ago

Only a single row can be built at a time. This error message is/often an indication that the sender has been accidentally shared between threads.

An error is thrown because the thread that tried to construct the row will not succeed, therefore, silently failing could result in data loss. A partial row created by 2 separate threads is nonsense data.

We can help you try to debug your code, either here or on Slack :)

If you identify a bug with hasTable not being set correctly, let us know and we will fix it!