[
https://issues.apache.org/jira/browse/KAFKA-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16196166#comment-16196166
]
siva santhalingam commented on KAFKA-6023:
------------------------------------------
Hi [[email protected]] assigning this to myself, please let me know if that is
okay.
> ThreadCache#sizeBytes() should check overflow
> ---------------------------------------------
>
> Key: KAFKA-6023
> URL: https://issues.apache.org/jira/browse/KAFKA-6023
> Project: Kafka
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Minor
>
> {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)