You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please read this entire template before posting any issue. If you ignore these instructions
and post an issue here that does not follow the instructions, your issue might be closed,
locked, and assigned the not reproducible label.
🐛 Bug Report
The very first request executes the product check procedure. When new requests comes during this check the new product-check event listeners are added.
Only the very first request attach the 'product-check' event listener. The others requests are queued and executed from the event handler for the first request.
Paste the results here:
Your Environment
node version: v18.17.1
@elastic/elasticsearchversion: 7.17.13
os: Mac
any other relevant information
The text was updated successfully, but these errors were encountered:
Looks similar to elastic/elastic-transport-js#63, which is a long-standing issue now, but that is specific to the 8.x client and its use of Undici. Will keep this open and track separately.
In the short term, if this issue is not causing notable memory leak issues for you, you can increase max listeners globally to quiet the warnings.
Please read this entire template before posting any issue. If you ignore these instructions
and post an issue here that does not follow the instructions, your issue might be closed,
locked, and assigned the
not reproducible
label.🐛 Bug Report
The very first request executes the
product check
procedure. When new requests comes during this check the newproduct-check
event listeners are added./~https://github.com/elastic/elasticsearch-js/blob/7.17/lib/Transport.js#L476
The nodeJS warning is then reported:
To Reproduce
Steps to reproduce the behavior:
event-listener.js
node --trace-warnings ./event-listener.js
Paste your code here:
Expected behavior
Only the very first request attach the
'product-check'
event listener. The others requests are queued and executed from the event handler for the first request.Paste the results here:
Your Environment
@elastic/elasticsearch
version: 7.17.13The text was updated successfully, but these errors were encountered: