You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Belyak (JIRA)" <ji...@apache.org> on 2018/04/27 09:22:00 UTC

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

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

Alexander Belyak updated IGNITE-8407:
-------------------------------------
    Description: 
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}

  was:
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(8, 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}


> 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)