Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3069

Mapping source inconsistencies: downtime only if necessary

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently, fixing mapping source inconsistencies drops and rebuild the projection (mappingSource) table thus altering temporarilly aliases view (mail rewritting is not affected but as a user I will get temporarily bad results on alias webadmin reuests).

      Such destructive behavior prevents the `SolveInconsistencies` endpoint to be scheduled on a regular basis.

      We should drop the table and rebuild it ONLY WHEN we have a high degree of certitude the projection is inconsistent.

      Maybe a good approach would be to have a "check" step in the solve inconsistencies

      ```
      if (!check())

      { fixMappingSourceInconsistencies(); }

      ```

      We could be using a hash-based strategy:

      ```
      Given a current timestamp,
      We iterate both tables and fill 2 bloom filters with the entries of each tables
      We compare the content of these bloom filters
      ```

      So that we drop the table to rebuild it only when it is needed ....

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              trantienduchn Trần Tiến Đức
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: