jdeppe-pivotal commented on a change in pull request #7513:
URL: https://github.com/apache/geode/pull/7513#discussion_r839616989
##########
File path:
geode-for-redis/src/distributedTest/java/org/apache/geode/redis/internal/commands/executor/string/MSetDUnitTest.java
##########
@@ -114,6 +119,33 @@ public void
testMSet_concurrentInstancesHandleBucketMovement() {
.allSatisfy(value ->
assertThat(value).startsWith("valueTwo"))));
}
+ @Test
+ public void testMSet_isTransactional() {
+ String hashTag = "{" + clusterStartUp.getKeyOnServer("tag", 1) + "}";
+ String key1 = hashTag + "key1";
+ String value1 = "value1";
+ jedis.set(key1, value1);
+
+ clusterStartUp.getMember(1).invoke(() -> {
+ valueReference =
+ (RedisString)
ClusterStartupRule.getCache().getRegion(DEFAULT_REDIS_REGION_NAME)
+ .get(new RedisKey(key1.getBytes()));
+ assertThat(new String(valueReference.getValue())).isEqualTo(value1);
+ });
+
+ String newValue = "should_not_be_set";
Review comment:
The idea here is that `valueReference` is being set in the remote JVM -
it has no context in the JVM that is actually running the test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]