Skip to content
Snippets Groups Projects
  1. Sep 28, 2024
    • kaiyou's avatar
      Clean all unreferenced state groups when purging · 4b18a082
      kaiyou authored
      The purging code already cleans unreferenced state groups up
      the graph when purging, ie. previous state groups that are not
      referenced anymore because we are deleting their children.
      
      However, some state groups are completely unreferenced, and
      thus never cleaned, because no code even looks for them. They
      could be detected and cleaned on a regular basis, yet because
      they cause the room purging code to spam the database with
      useless de-delta-ed lines, it would be nice to detect and clean
      them early before things go wrong.
      
      See https://github.com/element-hq/synapse/issues/9406 for details
      about the issue as seen in the wild.
      
      We are interested in state groups *down* the graph from those
      we delete, which are the ones we might accidently de-delta. Hence
      we replace the code that climbs up the graph with a broader search
      for state groups to delete, browsing all linked groups, up and down
      the graph.
      4b18a082
  2. Sep 26, 2024
    • kaiyou's avatar
      Fix a logical error while purging state groups · fbd930ce
      kaiyou authored
      Climbing up the state group graph was looking for previous state
      groups, but actually fetched the state groups themselves instead.
      fbd930ce
    • kaiyou's avatar
      Add documentation regarding state group purging · 294fb217
      kaiyou authored
      State group purging during history purging is a rather complex
      process. It took us a while to reverse engineer it and find
      some basic and more complex issues. This merely add the comments
      that would have helped us dive faster into the codebase.
      294fb217
  3. Sep 08, 2024
  4. Sep 02, 2024
  5. Aug 30, 2024
  6. Aug 29, 2024
  7. Aug 28, 2024
  8. Aug 27, 2024
  9. Aug 23, 2024
  10. Aug 20, 2024
Loading