-
Notifications
You must be signed in to change notification settings - Fork 563
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
Process does not exit when using new Realm.App
on Node
#4535
Comments
We have investigated it but haven't reached a conclusion. Attaching a debugger to the node process provides no Realm related stack traces:
Moreover, we have tried to remove the initialization of the sync manager (in core We haven't been able to find any blocking resources using wtfnode or However, calling const Realm = require("realm");
let app = new Realm.App("smurf");
Realm.clearTestState(); We tried adding:
and these are not fired in this case. |
We also created a (skipped) failing test case for this, which should be enabled when this is fixed: #4556 |
Has this issue been confirmed to be resolved by #4556 ? |
How are people using Realm with this issue? I can't even get code to continue to execute after opening Realm.
Edit: the above code is now working in the sense that execution continues. Process remains open at the end. The only thing I did different, briefly, was change the code to do Realm.open instead of using the .mongoclient.db style. While using Realm.open, the output noted that a client reset was needed and it performed a local discard. I then reverted to the original code (above) and it now continues execution properly. Maybe there is a bug there that execution hangs with new Realm.app and the .mongoClient approach if a client reset is needed. Wanted to note this info for the next person. |
Did it say why a client reset was needed? |
Is there any progress on this issue? The process doen't exit after importing the |
Unfortunately not. For our tests, we have a brutal method ( |
With v12.7.0 we have introduced the method Realm.shutdown() to gracefully terminate Realm |
To reproduce:
index.js
:node index.js
never exitsThis issue seems to have started happening in
realm@10.2.0
. Possibly related: #3525.May be the real fix for #4530, in which case we can revert that change.
The text was updated successfully, but these errors were encountered: