Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8188

Some SSDs are not properly detected as non-rotational

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 3.2.0
    • Impala 3.2.0
    • Backend
    • None
    • ghx-label-5

    Description

      Here is an example Impala log:

       

      I0211 10:50:40.650727 18344 init.cc:288] Disk Info: 
        Num disks 2: 
          nvme0n (rotational=true)
          nvme0n1p (rotational=true)

      I logged into an equivalent machine, and the OS sees these as not rotational:

       

       

      # cat /sys/block/nvme0n1/queue/rotational
      0
      

      Device names that end in a number get trimmed (i.e. /dev/sda2 becomes /dev/sda). See https://github.com/apache/impala/blob/master/be/src/util/disk-info.cc#L73-L74

      These devices don't follow that pattern, so we don't find the right files. Neither /sys/block/nvme0n nor /sys/block/nvme0n1p exist, so both fall back to being rotational.

       

      Attachments

        Issue Links

          Activity

            People

              joemcdonnell Joe McDonnell
              joemcdonnell Joe McDonnell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: