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
Hello, I am running into an issue where when I run my application in jest connecting to a local instance of kinesis (re: Kinesalite). However, the issue I am seeing is that it detects open handles even when stopConsumer() is called before the end of a test.
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
I've isolated this just to when lifion-kinesis is set to consume, so I know the issue is when using this library.
My test is set up in this way ->
beforeAll(start kinesalite/dynalite) -> test(startConsumer -> stop Consumer) -> afterAll(stop kinesalite/dynalite)
The text was updated successfully, but these errors were encountered:
GoldFlsh
changed the title
State store and/or DynamoDB not stopped when stopConsumer() called
State store and/or DynamoDB client not stopped when stopConsumer() called
May 27, 2020
this.kinesis.destroy() after running stopConsumer() to see if I needed to do that and the stream handlers are still showing up as a leak even after that is completed.
The dynamodb-client retry does eventually stop if I let it sit there for a few minutes, but the leaks still don't go away at that point either. Is there anything else I need to be sure to close/destroy to make sure lifion kinesis cleans up after itself?
I'm actually seeing the same behavior with the kinesis-client, too now. I updated to the latest version of lifion-kinesis cause I realized I was using a slightly older version.
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
console.error
2020-06-09T14:29:30-0500 <warn> kinesis-client.js:150 (Object.onRetry) Trying to recover from AWS.Kinesis error…
- Message: connect ECONNREFUSED 127.0.0.1:64888
- Request ID: undefined
- Code: NetworkingError (undefined)
- Stream: local-kinesis-component-test
....
This is after running stopConsumer() and seeing this log message.
console.log
2020-06-09T14:29:27-0500 <debug> lease-manager.js:268 (LeaseManager.stop) The lease manager has stopped.
Hello, I am running into an issue where when I run my application in jest connecting to a local instance of kinesis (re: Kinesalite). However, the issue I am seeing is that it detects open handles even when
stopConsumer()
is called before the end of a test.I've isolated this just to when lifion-kinesis is set to consume, so I know the issue is when using this library.
My test is set up in this way ->
beforeAll(start kinesalite/dynalite) -> test(startConsumer -> stop Consumer) -> afterAll(stop kinesalite/dynalite)
When I run with https://github.com/Raynos/leaked-handles it checks what's still open and I get the following output -
The text was updated successfully, but these errors were encountered: