[
https://issues.apache.org/jira/browse/IGNITE-8407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474407#comment-16474407
]
Sergey Nuyanzin commented on IGNITE-8407:
-----------------------------------------
Hello [~sbberkov]
could you please have a look at changes ?
> 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)