Repository navigation
JPA map storage: Authorization services no-downtime store - #11934
Conversation
da6d86d to
3de066f
Compare
3de066f to
7705fae
Compare
There was a problem hiding this comment.
I added some review comments. I'm also run it locally, as in the JPA FAQ from the maven command line. Unfortunately I get the error:
"Caused by: java.lang.IllegalAccessError: Update to non-static final field org.keycloak.models.map.storage.jpa.authSession.entity.JpaAuthenticationSessionEntity.metadata attempted from a different method ($$_hibernate_write_metadata) than the initializer method
at org.keycloak.models.map.storage.jpa.authSession.entity.JpaAuthenticationSessionEntity.$$_hibernate_write_metadata (JpaAuthenticationSessionEntity.java)
"
I need some more time and maybe help to continue the review.
7705fae to
d1d1e29
Compare
There was a problem hiding this comment.
@vramik - as discussed, the IllegalAccessError doesn't happen any more after some more full builds; maybe adding the -Pdistribution helped.
I added a review comment about the JDK11 API usage in this module we talked about in the call, please have a look.
d1d1e29 to
634badb
Compare
There was a problem hiding this comment.
I see that the build is green, and a manual test for login worked. I also reviewed all the code changes. Therefore this PR is good to be merged for me.
I'd love to see at least the model tests run for JPA, but this is something for a different PR that would then take care of all tests that might fail with map JPA.
634badb to
22423f8
Compare
There was a problem hiding this comment.
I found case where a DB constraint might possibly be missing, see below.
22423f8 to
8d2080f
Compare
8d2080f to
cfd7e79
Compare
cfd7e79 to
a3d034f
Compare
There was a problem hiding this comment.
I reviewed the latest changes and tested the UI (at least to the point where it triggers the creation of the tables). Thanks for this PR!
There was a problem hiding this comment.
As discussed in the last team call, the authorization models, each having their own table mapping, should have their own JPA entity version.
a3d034f to
fcef1c3
Compare
fcef1c3 to
44a1c85
Compare
Closes #9669
Sending it as a draft as it'd most likely require rebase once #11831 is merged