You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (Jira)" <ji...@apache.org> on 2021/12/06 23:27:00 UTC

[jira] [Updated] (GEODE-9798) javadocs on PartitionAttributesFactory.LOCAL_MAX_MEMORY_DEFAULT refers to internal code

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

Anthony Baker updated GEODE-9798:
---------------------------------
    Labels:   (was: needsTriage)

> javadocs on PartitionAttributesFactory.LOCAL_MAX_MEMORY_DEFAULT refers to internal code
> ---------------------------------------------------------------------------------------
>
>                 Key: GEODE-9798
>                 URL: https://issues.apache.org/jira/browse/GEODE-9798
>             Project: Geode
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.12.0
>            Reporter: Darrel Schneider
>            Priority: Minor
>
> The deprecation javadocs on PartitionAttributesFactory.LOCAL_MAX_MEMORY_DEFAULT tells users to use PartitionAttributesImpl.getLocalMaxMemoryDefault() instead. Non-internal javadocs should never refer to internal APIs. Geode does not have an alternative way of computing this default value statically. The only problem with the deprecated constant is that it is wrong for off-heap regions. The deprecation tag should just mention this and not tell you about any other api you can use.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)