Error mismatched input in JBoss Data Grid CLI when trying to run site command with a hyphen in site's name
Environment
- Red Hat JBoss Data Grid (JDG)
- 7.1.x
- 7.2.x
- 7.3.0
Issue
- An error message
mismatched inputis returned when trying to runsite --status $(sitename)inJDGCLI sitecommand returning an error
Resolution
The site command performs administration tasks related to cross-datacenter replication. As a workaround choose a site name without a hyphen.
Root Cause
The error occurs because the site name has a hyphen character in it. This issue is tracked in following jira (JDG-2494). The fix will be released in a future version.
Diagnostic Steps
Using the JDG CLI navigate to the cache level and try to get the site status:
[standalone@localhost:9990 /] container clustered
[standalone@localhost:9990 cache-container=clustered] cache default
[standalone@localhost:9990 distributed-cache=default] site --status site-01
line 1:14 mismatched input 'site' expecting set null
line 1:20 mismatched input '1' expecting set null
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments