Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2144

Garbage Collection using DatabaseBinaryStore deletes all entries

    XMLWordPrintable

Details

    Description

      When Garbage Collection runs, all binaries older than x time get deleted, regardless if they are in use or not.
      2 problems I detect:

      • Deleting a file node will not mark the binary as unused
      • Garbage collection query does not take into account the usage_flag: DELETE FROM content_store WHERE usage_time < ?

      Attached unit test demonstrates this behaviour. Note that with the use of FileBinaryStore, the test fails as well, but has different behaviour (see test description)

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            lestat79 Lars Weissenborn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: