[JBoss JIRA] (ISPN-10428) Incorrect XSD description for configuration of file-store
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10428?page=com.atlassian.jira.plugin... ]
Tristan Tarrant commented on ISPN-10428:
----------------------------------------
This is addressed in Infinispan 10 by making relative-to reference a system property name in embedded/serverng (as they don't have the concept of named paths). For the legacy server, nothing changes.
> Incorrect XSD description for configuration of file-store
> ---------------------------------------------------------
>
> Key: ISPN-10428
> URL: https://issues.jboss.org/browse/ISPN-10428
> Project: Infinispan
> Issue Type: Bug
> Components: Core, Server
> Environment: XSD
> jboss-infinispan-core*.xsd
> infinispan-config*.xsd
> Reporter: Wolf-Dieter Fink
> Priority: Minor
>
> Embedded and server mode are using a different configuration for file-store
> embedded : infinispan-config*
> {code}
> </xs:attribute>
> <xs:attribute name="relative-to" type="xs:string">
> <xs:annotation><xs:documentation>Unused XML attribute</xs:documentation></xs:annotation>
> </xs:attribute>
> <xs:attribute name="path" type="xs:string">
> <xs:annotation>
> <xs:documentation>
> The path within "relative-to" in which to store the cache state.
> If undefined, the path defaults to the cache container name.
> </xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> {code}
> Here the relative-to is not used but referenced for path.
> But path is used relative to PWD if it is not an absolute one, also if defaults to 'Infinispan-SingleFileStore' if not set.
> For the server configuration it is
> {code}
> <xs:attribute name="relative-to" type="xs:string" default="jboss.server.data.dir">
> <xs:annotation>
> <xs:documentation>The base directory in which to store the cache state.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> <xs:attribute name="path" type="xs:string">
> <xs:annotation>
> <xs:documentation>
> The path within "relative-to" in which to store the cache state.
> If undefined, the path defaults to the cache container name.
> </xs:documentation>
> </xs:annotation>
> </xs:attribute>
> {code}
> But relative-to is a reference to a path declaration like this
> {code}
> <paths>
> <path name="my.dir" path="/MyCacheStore"/>
> </paths>
> ...
> <distributed-cache name="wolf">
> <persistence>
> <file-store shared="false" fetch-state="true" relative-to="my.dir"/>
> </persistence>
> </distributed-cache>
> {code}
> If relative-to is set to a real path or env variable the server start will fail with
> {code}
> ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.datagrid-infinispan.clustered.wolf.config: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered.wolf.config: Failed to start service
> ...
> Caused by: java.lang.IllegalArgumentException: WFLYCTL0256: Could not find a path called '/MyCacheStore'
> at org.jboss.as.controller.services.path.PathManagerService.resolveRelativePathEntry(PathManagerService.java:110)
> at org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationAdd$5.inject(CacheConfigurationAdd.java:765)
> at org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationAdd$5.inject(CacheConfigurationAdd.java:760)
> at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:58)
> at org.jboss.msc.service.ServiceControllerImpl.inject(ServiceControllerImpl.java:1517)
> at org.jboss.msc.service.ServiceControllerImpl.inject(ServiceControllerImpl.java:1503)
> at org.jboss.msc.service.ServiceControllerImpl.access$2800(ServiceControllerImpl.java:55)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1699)
> ... 6 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10434) Can't start infinispan server when there is a blank space in the path
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10434?page=com.atlassian.jira.plugin... ]
Tristan Tarrant updated ISPN-10434:
-----------------------------------
Status: Open (was: New)
> Can't start infinispan server when there is a blank space in the path
> ---------------------------------------------------------------------
>
> Key: ISPN-10434
> URL: https://issues.jboss.org/browse/ISPN-10434
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.Beta4
> Environment: * Extract new infinispan server into a path with a blank space, example /opt/infinispan snapshot
> * run server.sh script
> Reporter: Gustavo Lira e Silva
> Priority: Major
>
> Here is the full stack trace:
> {noformat}
> =========================================================================
> Bootstrap Environment
> ISPN_HOME: /Users/gustavo/Development/infinispan snapshot/infinispan-server-10.0.0.Beta4
> JAVA: /Users/gustavo/.sdkman/candidates/java/current/bin/java
> JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=32M -XX:MaxMetaspaceSize=64m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true
> =========================================================================
> Error: Unable to access jarfile /Users/gustavo/Development/infinispan
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10434) Can't start infinispan server when there is a blank space in the path
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10434?page=com.atlassian.jira.plugin... ]
Tristan Tarrant updated ISPN-10434:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/7174
> Can't start infinispan server when there is a blank space in the path
> ---------------------------------------------------------------------
>
> Key: ISPN-10434
> URL: https://issues.jboss.org/browse/ISPN-10434
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.Beta4
> Environment: * Extract new infinispan server into a path with a blank space, example /opt/infinispan snapshot
> * run server.sh script
> Reporter: Gustavo Lira e Silva
> Priority: Major
>
> Here is the full stack trace:
> {noformat}
> =========================================================================
> Bootstrap Environment
> ISPN_HOME: /Users/gustavo/Development/infinispan snapshot/infinispan-server-10.0.0.Beta4
> JAVA: /Users/gustavo/.sdkman/candidates/java/current/bin/java
> JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=32M -XX:MaxMetaspaceSize=64m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true
> =========================================================================
> Error: Unable to access jarfile /Users/gustavo/Development/infinispan
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10450) ServerNG: improve the initial experience
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10450?page=com.atlassian.jira.plugin... ]
Tristan Tarrant updated ISPN-10450:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/7174
> ServerNG: improve the initial experience
> ----------------------------------------
>
> Key: ISPN-10450
> URL: https://issues.jboss.org/browse/ISPN-10450
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Fix For: 10.0.0.Beta5
>
>
> A list of various items to improve the initial serverng experience:
> * Localizable help messages for server and user-tool
> * Stack selection via the command-line (-j)
> * Port binding via the command-line (-p)
> * Make default configuration (infinispan.xml) clustered
> * Add non-clustered configuration infinispan-local.xml
> * Disable TLS/keystore and memcached connector in default config
> * Refactor shells scripts extracting common logic to common.sh
> * Add a README.md file to get users started
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10450) ServerNG: improve the initial experience
by Tristan Tarrant (Jira)
Tristan Tarrant created ISPN-10450:
--------------------------------------
Summary: ServerNG: improve the initial experience
Key: ISPN-10450
URL: https://issues.jboss.org/browse/ISPN-10450
Project: Infinispan
Issue Type: Enhancement
Components: Server
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 10.0.0.Beta5
A list of various items to improve the initial serverng experience:
* Localizable help messages for server and user-tool
* Stack selection via the command-line (-j)
* Port binding via the command-line (-p)
* Make default configuration (infinispan.xml) clustered
* Add non-clustered configuration infinispan-local.xml
* Disable TLS/keystore and memcached connector in default config
* Refactor shells scripts extracting common logic to common.sh
* Add a README.md file to get users started
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months