[keycloak-user] Users added since last restart MISSING/GONE after power went out

Marko Strukelj mstrukel at redhat.com
Mon Sep 7 10:55:21 EDT 2015


Sounds like we might not be using WriteConcern.ACKNOWLEDGED.

I think there should be

this.db.setWriteConcern(WriteConcern.ACKNOWLEDGED);

in this line:
https://github.com/keycloak/keycloak/blob/master/connections/mongo/src/main/java/org/keycloak/connections/mongo/DefaultMongoConnectionFactoryProvider.java#L92



On Mon, Sep 7, 2015 at 2:47 AM, Dean Peterson <peterson.dean at gmail.com>
wrote:

> There may be a serious bug in Keycloak.  I have a number of users that
> have been completely wiped from the Keycloak mongodb database after a power
> outage.  Luckily I retain their information in a separate mongodb database
> with other information or they would be gone forever.  When does Keycloak
> commit user data?  The users that are missing are users that registered
> after the last system restart but before the system went down after a power
> outage.
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150907/0aa1ded6/attachment.html 


More information about the keycloak-user mailing list