[ 
https://issues.apache.org/jira/browse/GEODE-6550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798836#comment-16798836
 ] 

ASF subversion and git services commented on GEODE-6550:
--------------------------------------------------------

Commit 2e2f419e4479c962250f6ea947475fff016137a8 in geode's branch 
refs/heads/develop from Juan José Ramos
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=2e2f419 ]

GEODE-6550: Use cache-writer in AlterRegionCommand (#3336)

- Fixed minor warnings.
- Parameter `cache-writer`, instead of `cache-loader`, is now used to
configure the internal `CacheWriter` for the region.


> AlterRegionCommand Fails to set CacheWriter
> -------------------------------------------
>
>                 Key: GEODE-6550
>                 URL: https://issues.apache.org/jira/browse/GEODE-6550
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>            Reporter: Juan José Ramos Cassella
>            Assignee: Juan José Ramos Cassella
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The {{alter region}} command checks the nullity of the {{cache-writer}} 
> parameter but, when altering the region, sets the {{cache-loader}} attribute 
> instead.
> {code:java|title=AlterRegionCommand.java|borderStyle=solid}
> public ResultModel alterRegion(...) {
> ...
>     if (cacheWriter != null) {
>       regionAttributesType.setCacheWriter(
>           new DeclarableType(cacheLoader.getClassName(), 
> cacheLoader.getInitProperties()));
>     }
> ...
> }
> {code}



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

Reply via email to