Juan José Ramos Cassella created GEODE-6550:
-----------------------------------------------

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


The {{alter region}} command checks the nullity of the {{cache-writer}} 
parameter but, when altering the region, sets the {{cache-loader}} attribute 
instead.

{code: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