Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3310

Garbage collection might remove files with references in the replication table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • replication
    • None

    Description

      There's a possible race condition deleting files from HDFS still needed for replication. The Accumulo garbage collector will not check for references to files in use if it thinks that the replication table does not exist (or is offline, as the case will be after ACCUMULO-3147 is completed). The problem with this is that the table may actually exist, and may be the only place where the in-use file is still referenced, but the garbage collector may not yet know the table exists.

      This probably has a very low probability of happening, and only really affects the case when replication is first started. However, if it did happen, it would mean an error replicating data.

      Some solutions discussed with elserj:

      1. Always scan the table. This requires the table to always exist and be online and available for scanning.
      2. Keep the status messages around until after they are removed from the replication table. This requires moving the deletes from StatusMaker to RemoveCompleteReplicationRecords. There may be some implications for delaying removal of these entries, but probably not too many, and none we can't work through.
      3. Move the contents of the replication table to the metadata table and don't have a separate replication table. This would require a big refactoring, and might have performance implications to the metadata table.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ctubbsii Christopher Tubbs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: