-
Notifications
You must be signed in to change notification settings - Fork 128
GORA_447 NPE Fix #61
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
GORA_447 NPE Fix #61
Conversation
|
@djkevincr thanks for this PR. |
|
@lewismc Thanks for the hints, will make sure those are followed from next time. Please review and let me know if there any concerns. |
|
@renato2099 any comments here? |
|
it's pretty cool stuff @djkevincr ! But I think we need to go over it. My main concern is the addition of the clearField method to the Persistent class. Two main thoughts on it:
|
|
@renato2099 +1, I also agree with your concerns. However I had to make some changes to MemStore getPersistent(T obj, String[] fields) to work as expected. I have further added some test cases to verify this method. Can you please have look? |
|
@lewismc @renato2099 Is there anything which I could help here? |
|
We need to ensure that the additions to the persistent class/compiler do not render data which has already been written useless! |
|
@lewismc +1 I have removed all the changes I did to Persistent class/compiler as per the @renato2099 review. I added some changes to deleteByQuery(Query<K, T> query) and getPersistent(T obj, String[] fields) of MemStore. Further I added some unit tests for getPersistent(T obj, String[] fields) to MemStoreTest. Can you please point me to the code if anything I am missing here ? |
|
I am +1 for this patch. Any comments @renato2099. I've tested it locally and it fixes the issue which was previous failing with the Unit test. |
|
Thank you @djkevincr if you could
|
|
Thanks @lewismc @djkevincr ! This looks much more to what we needed :D Awesome work! |
No description provided.