kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damian Guy (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-6023) ThreadCache#sizeBytes() should check overflow
Date Wed, 18 Oct 2017 08:49:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Damian Guy resolved KAFKA-6023.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0

Issue resolved by pull request 4041
[https://github.com/apache/kafka/pull/4041]

> ThreadCache#sizeBytes() should check overflow
> ---------------------------------------------
>
>                 Key: KAFKA-6023
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6023
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Ted Yu
>            Assignee: siva santhalingam
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> {code}
>     long sizeBytes() {
>         long sizeInBytes = 0;
>         for (final NamedCache namedCache : caches.values()) {
>             sizeInBytes += namedCache.sizeInBytes();
>         }
>         return sizeInBytes;
>     }
> {code}
> The summation w.r.t. sizeInBytes may overflow.
> Check similar to what is done in size() should be performed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message