kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KYLIN-3580) CuboidStatsUtil#complementRowCountForMandatoryCuboids uses entrySet to add elements
Date Wed, 26 Sep 2018 10:56:00 GMT

    [ https://issues.apache.org/jira/browse/KYLIN-3580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16628587#comment-16628587
] 

ASF subversion and git services commented on KYLIN-3580:
--------------------------------------------------------

Commit 043a3156c17f9c2dbd76125ab8e957d29c1dffed in kylin's branch refs/heads/master from [~caolijun1166]
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=043a315 ]

KYLIN-3580 Avoid using entrySet to add elements@CuboidStatsUtil#complementRowCountForMandatoryCuboids


> CuboidStatsUtil#complementRowCountForMandatoryCuboids uses entrySet to add elements
> -----------------------------------------------------------------------------------
>
>                 Key: KYLIN-3580
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3580
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Lijun Cao
>            Priority: Major
>             Fix For: v2.6.0
>
>
> Here is related code:
> {code}
>         sortedStatsSet.addAll(statistics.entrySet());
> {code}
> The entrySet() method is allowed to return a view of the underlying Map in which a single
Entry object is reused and returned during the iteration.
> When iterating through such a Map, the Entry value is only valid until you advance to
the next iteration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message