Alluxio / Community

New Contributor Tasks for Alluxio
20 stars 38 forks source link

Consolidate usage of tier names in the repo #586

Closed LuQQiu closed 3 years ago

LuQQiu commented 3 years ago

PTAL the https://docs.alluxio.io/os/user/stable/en/core-services/Caching.html before working on this task. Alluxio has medium types like MEM, SSD, HDD, they are used throughout the whole repo. It will be better to create constants for those "MEM", "SSD", "HDD" usage instead of hard typing it every time.

A single place for us to put constants is at https://github.com/Alluxio/alluxio/blob/master/core/common/src/main/java/alluxio/Constants.java

Create constants for "MEM", "SSD", "HDD" and replace the strings with their constants throughout the repo.