Closed WT2 closed 1 year ago
We support MongoDB 6
I cannot reproduce.
Nevertheless I refactored the code to avoid the NullPointerException in that line, even if it is weird that you get a document inserted but no data from the MongoDB java driver (thus thew NPE)
Can you try with the following snapshot image
$ docker pull softinstigate/restheart-snapshot:45955fb
Hi @ujibang YES! thanks it corrects. I set this snapshot only on one of my two nodes. i still reproduce on the node with 7.3.3 and no longer on the snapshot 45955fb! so your refactor worked! i no longer have that error.
Actually i just realized that i was getting this with RESTHEART default readPreference set to secondaryPreffered. When i put it back to primaryPreferred, i do not reproduce.
So if you want to reproduce, you set in your restheart settings MONGO_URI secondaryPreffered.
You confirm?
I just discovered some other bugs with secondaryPreffered as default, i can share them with you if you like.
yes please share all the bugs you find.
ok i will in a separate issues. for #452 and #454 is it OK for you to merge it in the next minor version ?
hello, do you confirm this has been taken into account in 7.3.4? thanks
yes, this fix is in 7.3.4
Hello Guys
restheart:7.3.2 / 7.3.3 mongo:6.0
Sorry guys to bother you.. i have POST to create documents random error. I am wondering if this is not due to the fact that i use mongo6, and you maybe fully support mongo5 at this time. Do you advise me to use mongo5 rather than 6? Thanks
Here is the exception:
HERE IS THE REQUEST