Skip to content
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

Multiprocess support #1300

Closed
wants to merge 14 commits into from
Closed

Multiprocess support #1300

wants to merge 14 commits into from

Conversation

beeender
Copy link
Contributor

@beeender beeender commented Jul 17, 2015

This PR will test the possibility of current status of multi process first. Then maybe add more features to make multi process work better.

Fixes #1091

The new notification based on wait_for_change won't guarantee how many
times the notification will be sent.
@beeender
Copy link
Contributor Author

beeender commented Feb 3, 2016

Right now, merging this PR means more virtual spaces are needed for the shared group in RealmDaemon. Need realm/realm-core#838 to be implemented first.

import io.realm.internal.log.RealmLog;

/**
* Daemon thread sleeps until one ore more commits have been made to the corresponding Realm. When change happens, the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ore/or

@Zhuinden
Copy link
Contributor

Zhuinden commented Aug 28, 2016

Native Wait for change method is notified by changes in other process? 😮

@Zhuinden
Copy link
Contributor

I guess the question is when multiprocess will be supported for migrations / schema changes / lock version change.

@cmelchior
Copy link
Contributor

cmelchior commented Sep 16, 2016

@Zhuinden In theory with the things we have merged to master, interprocess should be fully supported now, but we still need to review it with that in mind. At least last we checked there was a few unfortunate race conditions when opening Realms, e.g opening a Realm for the first time in a process requires a write transaction and if another process is writing at the same time, you suddenly completely blocked one of the processes.

Which is why we are not officially saying it is "done" yet 😄

@simc
Copy link

simc commented Feb 27, 2017

@cmelchior Is there any news on this issue? I still need multiprocess support :/

@Elvis10ten
Copy link

Hello, Is multi process now supported in realm 3 ?. I also have a question here about multi-process: http://stackoverflow.com/questions/42733931/realm-multi-process-best-practice

@Zhuinden
Copy link
Contributor

This PR is like, super-outdated 😄 there is no such thing as HandlerController!

@beeender
Copy link
Contributor Author

Replaced by #5473

@beeender beeender closed this Oct 26, 2017
@cmelchior cmelchior deleted the mc-multi-process branch November 20, 2017 12:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add multi process support
7 participants