-
Notifications
You must be signed in to change notification settings - Fork 144
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
Realm: better error message when failed to create an accessor #1772
Comments
I suspect this is going to be one of those things that is really hard to give a good error message. On the owner node at least you can mark a |
I just realized that we do not use accessor for remote instance any more. The only memory support remote access was global memory from GASNet1, which is almost deprecated. Maybe the IPC memory? |
I think I can still make a |
If the |
Huh, that is surprising to me. Maybe that is a regression but I thought we could do puts/gets to instances in
I would make sure that whatever checking we do incurs near-zero overhead (some branches are fine since they can be predicted away). |
@lightsighter I just tried I will not put any effort on this issue for now, but I plan to leave it open just in case we need it in the future. |
Ah, that's ok. The plumbing is there and my interpretation of what should be allowed is reasonable, we just haven't implemented it in the networking backends.
Sounds good. The code paths are there, just unimplemented until we need them which is fine. |
I was surprised that we don't have it too. I came across that when writing several integration tests and wanting to validate the remote data written. That's not a strong enough justification only for the feature to be pushed but would certainly remove some of the boiler-plate code we have in our integration tests on none perf-critical paths. |
When creating an accessor for a region instance whose metadata is not valid, Realm will throw an assertion
However, the assertion does not provide useful information for debugging. There are several cases that could trigger the assertion:
fetch_metadata
for remote instances.Thus, it will be helpful if we can provide a detailed error message/code to tell which case is causing the failure.
The text was updated successfully, but these errors were encountered: