You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Kalinin (JIRA)" <ji...@apache.org> on 2019/01/17 19:27:00 UTC

[jira] [Commented] (IGNITE-8407) Wrong memory size printing in IgniteCacheDatabaseSnaredManager

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

Andrey Kalinin commented on IGNITE-8407:
----------------------------------------

This ticket looks like a duplicate of IGNITE-5755. [~sbberkov] I propose to close this ticket. What do you think?

> Wrong memory size printing in IgniteCacheDatabaseSnaredManager
> --------------------------------------------------------------
>
>                 Key: IGNITE-8407
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8407
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.4
>            Reporter: Alexander Belyak
>            Priority: Trivial
>
> In checkDataRegionSize regCfg printing in "si" format (based on 1000, not 1024). Need to fix it and any other usages of getInitialSize()/getMaxSize()) with U.readableSize(*, true) 
> {noformat}
> throw new IgniteCheckedException("DataRegion must have size more than 10MB (use " +
>                 "DataRegionConfiguration.initialSize and .maxSize properties to set correct size in bytes) " +
>                 "[name=" + regCfg.getName() + ", initialSize=" + U.readableSize(regCfg.getInitialSize(), true) +
>                 ", maxSize=" + U.readableSize(regCfg.getMaxSize(), true) + "]"
> {noformat}
> should be replaced with
> {noformat}
> throw new IgniteCheckedException("DataRegion must have size more than 10MB (use " +
>                 "DataRegionConfiguration.initialSize and .maxSize properties to set correct size in bytes) " +
>                 "[name=" + regCfg.getName() + ", initialSize=" + U.readableSize(regCfg.getInitialSize(), false) +
>                 ", maxSize=" + U.readableSize(regCfg.getMaxSize(), false) + "]"
> {noformat}



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