[JBoss JIRA] (ISPN-3164) Replacing entry via Memcached does not increment version of original HotRod entry
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-3164?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño commented on ISPN-3164:
----------------------------------------
Martin, this is similar to ISPN-3163. That's now fixed in master, which results in all server endpoints using the same mechanism to up the version whenever there's a modification. Can you verify if this issue is still present?
> Replacing entry via Memcached does not increment version of original HotRod entry
> ---------------------------------------------------------------------------------
>
> Key: ISPN-3164
> URL: https://issues.jboss.org/browse/ISPN-3164
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 5.3.0.CR1
> Reporter: Martin Gencur
> Assignee: Galder Zamarreño
> Fix For: 5.3.0.Final
>
>
> When an entry is stored via HotRod and later replaced by Memcached (or Embedded, it does not matter), the version of the entry does not change. This makes operations like replaceWithVersion of HotRod client unreliable in compatibility mode.
> {code:java}
> public void testHotRodPutMemcachedReplaceHotRodGetVersionedTest() throws Exception {
> final String key1 = "6";
> // 1. Put with Hot Rod
> RemoteCache<String, Object> remote = cacheFactory.getHotRodCache();
> assertEquals(null, remote.withFlags(Flag.FORCE_RETURN_VALUE).put(key1, "v1"));
> VersionedValue oldValue = remote.getVersioned(key1);
> // 2. Replace with Memcached
> Future<Boolean> f = cacheFactory.getMemcachedClient().set(key1, 0, "v2");
> assertTrue(f.get(60, TimeUnit.SECONDS));
> // 3. Get with HotRod
> assertEquals("v2", remote.getVersioned(key1).getValue());
> assertTrue("The entry version should have changed", oldValue.getVersion() != remote.getVersioned(key1).getVersion());
> //^^^ fails here
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (ISPN-3140) JMX operation to suppress state transfer
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-3140?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-3140:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 5.3.0.CR2
Resolution: Done
Integrated in master. Thanks!
> JMX operation to suppress state transfer
> ----------------------------------------
>
> Key: ISPN-3140
> URL: https://issues.jboss.org/browse/ISPN-3140
> Project: Infinispan
> Issue Type: Feature Request
> Components: Distributed Cache, State transfer
> Affects Versions: 5.2.6.Final
> Reporter: Manik Surtani
> Assignee: Mircea Markus
> Fix For: 5.3.0.CR2, 5.3.0.Final
>
>
> This feature request is to expose a JMX operation on each node, to suppress state transfer for a period of time. This flag would be {{false}} by default.
> The use case of this flag would be to ease bringing down (and up) a cluster for maintenance work. A typical workflow would be:
> 1) Shut down application requests to the data grid
> 2) Suppress state transfer on all nodes via JMX
> 3) Bring down all nodes
> 4) Perform maintenance work
> 5) Bring up nodes, one at a time. As each node comes up, disable state transfer for the node via JMX.
> 6) Once all nodes are up, enable state transfer for each node again via JMX
> 7) Allow application requests to reach the grid again.
> The purpose of this is to allow smooth and fast shutdown and startup, remove the risk of OOM errors (when bringing a grid down).
> This is a small but useful subset of full manual state transfer as defined in ISPN-1394.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months