Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21738

Remove uselocastore/usemainstore configurations for better maintenance

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A

    Description

      Two properties are defined in xwiki.properties: eventstream.uselocalstore and eventstream.usemainstore.

      Those properties used to have 2 usages: they were used for the storage of the events in the DB, and they were used for the storage of the notification filter preferences that are stored in the DB.

      Since we moved the events in Solr, and that we moved the post-filtering code to legacy, the properties are now only used for the storage of the notification filter preferences. So the documentation we currently have in xwiki.properties right now is wrong and outdated since it’s talking about the events.

      Now the default for those properties is to rely on the mainStore (both properties are set to true, but mainStore has priorities over localStore). Main store means main wiki here. So the side effect is that right now all notification filter preferences are stored in the main wiki by default, instead of being stored in the same DB than the users: it’s not very consistent and it might even lead to problems in case of manual operations on the DB.

      Proposal made in https://forum.xwiki.org/t/get-rid-of-eventstream-uselocalstore-and-eventstream-usemainstore-configurations/13136/ to change the behaviour.

      Attachments

        Activity

          People

            surli Simon Urli
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: