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

VolumeManager FileType needs unit tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      The FileType enum in VolumeManager has some behavior which should be unit tested.

      In particular, it should check that the retrieval (or removal) of volumes from a path works correctly.

      At first glance, it looks to me like it is broken, because it is looking for the first occurrence of a directory which starts with /tables, in the case of tables. However, that will break if the volume itself had a path with /tables in it (example: hdfs://nn1/tablesorting-application/accumulo, which would have the directory hdfs://nn1/tablesorting-application/accumulo/tables/...)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: