Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10988

Let zero OzoneQuota use byte as unit

    XMLWordPrintableJSON

Details

    Description

      Just found that valueOf(0) will use EB. (Fortunately, we added EB; otherwise, it becomes an ArrayIndexOutOfBoundsException). Not a big deal, although we probably should fix it.

        public static void main(String[] args) {
          final RawQuotaInBytes q = RawQuotaInBytes.valueOf(0);
          System.out.println("q = " + q);
        }
      // q = 0 EB
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: