-
Bug
-
Resolution: Done
-
Major
-
JDG 7.0.0 ER9
-
None
If you find any of the fix suggestion too brief, don't hesitate to ask me
- 1.2. Steps to Set up Red Hat JBoss Data Grid
At point "Monitor Caches and Cache Managers", there is no mention of new administration console. I think it should be mentioned there.
- [ 2.3. Using Eviction | http://docbuilder.usersys.redhat.com/23161/#sect-Using_Eviction ]
Through this chapter, there is multiple usage of "max-entries" attribute. This attribute is deprecated (or not functional at all) and was replaced by "size" attribute, which is the same for both library and client-server mode, hence no need to separate them anymore. All the code snippets must be updated.
Furthermore, there is no mention of memory based eviction which is new. You can find all information about it here: http://blog.infinispan.org/2015/09/memory-based-eviction.html
- [ 2.3.3. Changing the Maximum Entries Value at Runtime | http://docbuilder.usersys.redhat.com/23161/#Changing_the_Maximum_Entries_Value_at_Runtime ]
I wasn't able to find the JMX operation, this should be probably investigated, if it's my fault or if it really doesn't exist. If it does, it should be definitely documented on which JMX bean.
- [ 2.3.4. Eviction Configuration Troubleshooting | http://docbuilder.usersys.redhat.com/23161/#Eviction_Configuration_Troubleshooting ]
This (rounding to the power of two) is not true anymore based on this blogpost: http://blog.infinispan.org/2015/03/eviction-improvements-in-infinispan.html
- [ 3.1. About Expiration | http://docbuilder.usersys.redhat.com/23161/#About_Expiration ]
Attribute "maxIdle" is changed to "max-idle" and is the same in library and client-server mode. Attributes "reaperEnabled" and "wakeUpInterval" don't exist anymore, hence the configuration is again the same for library and client-server mode.
- [ 4.2. Supported Application Logging Frameworks | http://docbuilder.usersys.redhat.com/23161/#sect-Supported_Application_Logging_Frameworks ]
"JBoss Logging, which is included with Red Hat JBoss Data Grid 6." - adjust JDG version
"JBoss Logging is the application logging framework that is included in JBoss Enterprise Application Platform 6. As a result of this inclusion, Red Hat JBoss Data Grid 6 also uses JBoss Logging. " - adjust JDG and EAP versions
- [ 4.3.2. Default Log File Locations | http://docbuilder.usersys.redhat.com/23161/#Default_Log_File_Locations1 ]
Boot log is by default in the server.log file. This setting can be modified by setting up property "org.jboss.boot.log.file" in logging.properties
- [ 4.5.2. Sample XML Configuration for the Root Logger | http://docbuilder.usersys.redhat.com/23161/#Sample_XML_Configuration_for_the_Root_Logger ]
Change namespaces from "urn:jboss:domain:logging:1.4" to "urn:jboss:domain:logging:3.0" in all code snippets about logging from this point (4 of them).
- [ Chapter 5. Cache Modes | http://docbuilder.usersys.redhat.com/23161/#chap-Cache_Modes ]
Second paragraph: "Clustered mode replicates state changes to a small subset of nodes." I think that the word "small" is not right in here, you can choose any size of the subset.
- [ 5.1. About Cache Containers | http://docbuilder.usersys.redhat.com/23161/#About_Cache_Containers ]
Change the namespace from "urn:infinispan:server:core:6.2" to "urn:infinispan:server:core:8.3". Attribute "listener-executor" doesn't exist anymore, so remove it both from code snippet and description below it.
- [ Configure Local Mode (Remote Client-Server Mode) | http://docbuilder.usersys.redhat.com/23161/#Configure_Local_Mode ]
The code snippet contains example of configuration of the local cache. I think it should be as simple as possible and there is extra configuration "indexing" element, which basically has nothing to do with it. I would remove it and add comment like "<!-- Additional configuration information here -->" which is present in many other code snippets.
- [ 5.3.2.2. About Asynchronous Communications | http://docbuilder.usersys.redhat.com/23161/#About_Asynchronous_Communications ]
I suggest moving this section one level up, therefore after "5.3.1. Asynchronous and Synchronous Operations". It makes more sense to me, since this section is not really a troubleshooting section.
- [ 5.4. State Transfer | http://docbuilder.usersys.redhat.com/23161/#sect-State_Transfer ]
I think this section should be moved after the section about distributed and replicated caches. E.g. this chapter talks about "numOwners", but it wasn't mentioned before anywhere. This is just my suggestion, feel free to ignore it (but after consideration! ).
- [ 6.3. Locating Entries in Distribution Mode | http://docbuilder.usersys.redhat.com/23161/#Locating_Entries_in_Distribution_Mode ]
Some "num_copies" parameter is mentioned here, shouldn't it be "numOwners"?
- [ 6.5. Configure Distribution Mode (Remote Client-Server Mode) | http://docbuilder.usersys.redhat.com/23161/#Configure_Distribution_Mode ]
The "executor" attribute of "transport" element is only applicable in the library mode, you cannot use it in the client-server mode. But it's not related really to the distributed cache, it's more JGroups option and there is a note below "JGroups must be appropriately configured for clustered mode before attempting to load this configuration.", so I think it's OK to omit the "transport" element in the code snippet.
Also there is last sentence in the section "For details about the cache-container, locking, and transaction elements, see the appropriate chapter." In the code snippet, there is no locking or transaction element, hence it doesn't really make sense. Plus it doesn't have any link to "appropriate chapters", so I think it could be simply removed.
- [ 6.6. Configure Distribution Mode (Library Mode) | http://docbuilder.usersys.redhat.com/23161/#Configure_Distribution_Mode_Library_Mode ]
- [ 7.4. Configure Replication Mode (Library Mode) | http://docbuilder.usersys.redhat.com/23161/#Configure_Replication_Mode_Library_Mode ]
- [ 8.3. Configure Invalidation Mode (Library Mode) | http://docbuilder.usersys.redhat.com/23161/#Configure_Invalidation_Mode_Library_Mode ]
These sections, both code snippets and texts, are completely outdated. The configuration changed a lot, e.g. there are no "clustering" or "global" elements in the JDG 7/Infinispan 8. You should refer to the Infinispan 8 documentation for details. (I hope that this redirection is sufficient, otherwise ask me for sure, I could create some examples for you )
- [ 7.3. Configure Replication Mode (Remote Client-Server Mode) | http://docbuilder.usersys.redhat.com/23161/#Configure_Replication_Mode1 ]
Same thing as with the "indexing" element as I mentioned above. There is "transaction" element, which is not directly relevant to replicated cache configuration, hence I would suggest removing it to make it as simple as possible and add a comment "<!-- Additional configuration information here -->".
- [ 7.6.1. Replication Queue Usage | http://docbuilder.usersys.redhat.com/23161/#Replication_Queue_Usage ]
Attribute "executor" is applicable only in library mode, you cannot use it in client-server mode, hencenot in standalone.xml and clustered.xml as the documentation says.
- [ 9.1. Batching API | http://docbuilder.usersys.redhat.com/23161/#Batching_API ]
Sentence "Batching may be enabled on a per-cache basis by defining a transaction mode of BATCHING. The following example demonstrates this:" contains mode "BATCHING". It's actually just "BATCH", just like the code snippet says.
- [ 10.1.1. Infinispan Query Dependencies in Library Mode | http://docbuilder.usersys.redhat.com/23161/#Hibernate_Dependencies_for_JBoss_Data_Grid ]
The transaction-api is not requiered anymore, remove it from the code snippet and the text.
- 10.3.3. Infinispan Directory Provider
In the code snippter there is line:<property name="default.directory_provider">filesystem</property
It contains wrong value and misses last ">", hence change it to:
<property name="default.directory_provider">infinispan</property
- [ 11.1. The REST Interface Connector | http://docbuilder.usersys.redhat.com/23161/#sect-The_REST_Interface_Connector ]
At the of the first paragraph, the last sentence "The following enables a REST server" is duplicated.
- [ 11.1.1. Configure REST Connectors | http://docbuilder.usersys.redhat.com/23161/#Configure_REST_Connectors1 ]
The code snippet and the text are really similiar with the 11.1 introduction, maybe we can merge them together? Also the code snippet needs correction, change the namespace from "urn:infinispan:server:endpoint:6.1" to "urn:infinispan:server:endpoint:8.0" and remove the "virtual-server" attribute, which no longer exists.
- [ 12.3.1. Configure Memcached Connectors | http://docbuilder.usersys.redhat.com/23161/#Configure_Memcached_Connectors ]
Change the namespace from "urn:infinispan:server:endpoint:6.1" to "urn:infinispan:server:endpoint:8.0".
- [ 13.4.1. Configure Hot Rod Connectors | http://docbuilder.usersys.redhat.com/23161/#Configure_Hot_Rod_Connectors1 ]
The code snippet should be (changed namespace, corrected "hotrod-connector" enclosing "topology-state-transfer" and removed "await-initial-transfer"):<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" idle-timeout="${VALUE}" tcp-nodelay="${TRUE/FALSE}" send-buffer-size="${VALUE}" receive-buffer-size="${VALUE}" > <topology-state-transfer lock-timeout"="${MILLISECONDS}" replication-timeout="${MILLISECONDS}" external-host="${HOSTNAME}" external-port="${PORT}" lazy-retrieval="${TRUE/FALSE}" /> </hotrod-connector> </subsystem>
Since the "await-initial-transfer" no longer exists, remove it also from the description.
Well, I guess that all for now