You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Juan José Ramos Cassella (JIRA)" <ji...@apache.org> on 2019/03/21 10:49:00 UTC

[jira] [Created] (GEODE-6550) AlterRegionCommand Fails to set CacheWriter

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)