Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6023

ThreadCache#sizeBytes() should check overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • streams
    • None

    Description

          long sizeBytes() {
              long sizeInBytes = 0;
              for (final NamedCache namedCache : caches.values()) {
                  sizeInBytes += namedCache.sizeInBytes();
              }
              return sizeInBytes;
          }
      

      The summation w.r.t. sizeInBytes may overflow.
      Check similar to what is done in size() should be performed.

      Attachments

        Issue Links

          Activity

            People

              sssanthalingam siva santhalingam
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: