Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3829

Metadata Caching : Drill should ignore a corrupted cache file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • Metadata
    • None

    Description

      git.commit.id.abbrev=3c89b30

      Drill should validate the cache file structure and ignore it if it detects any corruption to its contents.

      I placed an empty cache file in the directory and executed a count query on top of the directory. Below is what I got

      select count(*) from dfs.`/drill/testdata/metadata_caching/lineitem`;
      Error: SYSTEM ERROR: JsonMappingException: No content to map due to end-of-input
       at [Source: com.mapr.fs.MapRFsDataInputStream@293240cd; line: 1, column: 1]
      
      
      [Error Id: 88f77d37-aff3-4adc-bb0e-6c13b49e7776 on qa-node190.qa.lab:31010] (state=,code=0)
      

      At the very least we should inform that the cache file has been corrupted.

      Attachments

        Issue Links

          Activity

            People

              vitalii Vitalii Diravka
              rkins Rahul Kumar Challapalli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: