[jboss-jira] [JBoss JIRA] (AS7-3478) read-operation-description incorrect for distributed-cache
Richard Achmatowicz (JIRA)
jira-events at lists.jboss.org
Sun Jan 29 11:12:48 EST 2012
[ https://issues.jboss.org/browse/AS7-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662613#comment-12662613 ]
Richard Achmatowicz commented on AS7-3478:
------------------------------------------
Results:
{noformat}
[standalone at localhost:9999 /] /subsystem=infinispan/cache-container=hibernate/distributed-cache=*/:read-operation-description(name=add)
{
"outcome" => "success",
"result" => {
"operation-name" => "add",
"description" => "Add a distributed cache to this cache container",
"request-properties" => {
"start" => {
"type" => STRING,
"description" => "The cache start mode, which can be EAGER (immediate start) or LAZY (on-demand start).",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"min-length" => 1L,
"max-length" => 2147483647L
},
"batching" => {
"type" => BOOLEAN,
"description" => "If enabled, the invocation batching API will be made available for this cache.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true
},
"indexing" => {
"type" => STRING,
"description" => "If enabled, entries will be indexed when they are added to the cache. Indexes will be updated as entries change or are removed.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"min-length" => 1L,
"max-length" => 2147483647L
},
"mode" => {
"type" => STRING,
"description" => "Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.",
"expressions-allowed" => false,
"required" => true,
"nillable" => false,
"allowed" => [
"SYNC",
"ASYNC"
]
},
"queue-size" => {
"type" => INT,
"description" => "In ASYNC mode, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true
},
"queue-flush-interval" => {
"type" => LONG,
"description" => "In ASYNC mode, this attribute controls how often the asynchronous thread used to flush the replication queue runs. This should be a positive integer which represents thread wakeup time in milliseconds.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"unit" => "MILLISECONDS"
},
"remote-timeout" => {
"type" => LONG,
"description" => "In SYNC mode, the timeout (in ms) used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"unit" => "MILLISECONDS"
},
"owners" => {
"type" => INT,
"description" => "Number of cluster-wide replicas for each cache entry.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true
},
"virtual-nodes" => {
"type" => INT,
"description" => "Controls the number of virtual nodes per \"real\" node. If numVirtualNodes is 1, then virtual nodes are disabled. The topology aware consistent hash must be used if you wish to take advantage of virtual nodes. A default of 1 is used.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true
},
"l1-lifespan" => {
"type" => LONG,
"description" => "Maximum lifespan of an entry placed in the L1 cache. This element configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"unit" => "MILLISECONDS"
},
"state-transfer" => {
"type" => OBJECT,
"description" => "The state transfer configuration for distribution and replicated caches.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"allowed" => [
"enabled",
"timeout",
"chunk-size"
],
"value-type" => {
"enabled" => {
"type" => BOOLEAN,
"description" => "If enabled, this will cause the cache to ask neighboring caches for state when it starts up, so the cache starts 'warm', although it will impact startup time.",
"expressions-allowed" => false,
"nillable" => true,
"default" => false
},
"timeout" => {
"type" => LONG,
"description" => "The maximum amount of time (ms) to wait for state from neighboring caches, before throwing an exception and aborting startup.",
"expressions-allowed" => false,
"nillable" => true,
"default" => 0L,
"unit" => "MILLISECONDS"
},
"chunk-size" => {
"type" => INT,
"description" => "The size, in bytes, in which to batch the transfer of cache entries.",
"expressions-allowed" => false,
"nillable" => true,
"default" => 0
}
}
}
},
"read-only" => false
}
}
{noformat}
> read-operation-description incorrect for distributed-cache
> ----------------------------------------------------------
>
> Key: AS7-3478
> URL: https://issues.jboss.org/browse/AS7-3478
> Project: Application Server 7
> Issue Type: Bug
> Reporter: Stan Silvert
> Assignee: Richard Achmatowicz
>
> {noformat}
> /subsystem=infinispan/cache-container=hibernate/distributed-cache=distributed/:add(batching=false)
> {
> "outcome" => "failed",
> "failure-description" => "JBAS014749: Operation handler failed: No child 'mode' exists",
> "rolled-back" => true,
> "response-headers" => {"process-state" => "reload-required"}
> }
> {noformat}
> read-operation-description doesn't show "mode" as a required field and it doesn't restrict its values with "allowed"
> {noformat}
> /subsystem=infinispan/cache-container=hibernate/distributed-cache=*/:read-operation-description(name=add)
> {
> "outcome" => "success",
> "result" => {
> "operation-name" => "add",
> "description" => "Add a distributed cache to this cache container",
> "request-properties" => {
> ...
> "mode" => {
> "type" => STRING,
> "description" => "Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.",
> "expressions-allowed" => false,
> "required" => false,
> "nillable" => true,
> "min-length" => 1L,
> "max-length" => 2147483647L
> },
> ...
> }
> }
> {noformat}
> It should be:
> {noformat}
> "mode" => {
> "type" => STRING,
> "description" => "Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.",
> "expressions-allowed" => false,
> "required" => true,
> "nillable" => true,
> "min-length" => 1L,
> "max-length" => 2147483647L
> "allowed" => [
> "ASYNC",
> "SYNC"
> ]
> },
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list