Alexander Belyak created IGNITE-8407:
----------------------------------------

             Summary: 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


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}



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

Reply via email to