[
https://issues.apache.org/jira/browse/GEODE-8748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17242682#comment-17242682
]
ASF subversion and git services commented on GEODE-8748:
--------------------------------------------------------
Commit a39c200fe9f68d3a1707a2f4af12729ac833074f in geode's branch
refs/heads/develop from Nabarun Nag
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=a39c200 ]
GEODE-8748: Prevents NPE on alter expiry on proxy regions (#5790)
* When a region is created with zero local memory, there is no bucket
regions created.
* When alter region is called on this proxy region to alter expiry, it
tries to manipulate the bucket region.
* But there are no buckets and hence NPE is thrown.
* In this commit a null check is done before alter the bucket regions.
* Configs still need to changed to prevent restart issues.
* This similar to the check done in setEntryTimeToLive in
PartitionedRegion class
> Altering expiry time on proxy region causes NPE
> -----------------------------------------------
>
> Key: GEODE-8748
> URL: https://issues.apache.org/jira/browse/GEODE-8748
> Project: Geode
> Issue Type: Task
> Components: expiration
> Reporter: Nabarun Nag
> Priority: Major
> Labels: pull-request-available
>
> When we execute
> "create region --name=region --type=PARTITION_PROXY --group=proxy"
> "alter region --name=region --entry-time-to-live-expiration=1000
> --entry-time-to-live-expiration-action=destroy --group=proxy"
>
> This results in an NPE. Also if there is a mixture of proxy and non-proxy
> versions of the same region and we could alter some of the non-proxy but the
> proxy region failed on alter commands, then restarts will start encountering
> problems.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)