vert-x3 / vertx-ignite

Apache License 2.0
35 stars 28 forks source link

AsyncMap timeout not cleared if put is invoked #63

Closed tsegismont closed 6 years ago

tsegismont commented 6 years ago

See io.vertx.test.core.AsyncMapTest#testMapPutTtlThenPut:

    getVertx().sharedData().getAsyncMap("foo", onSuccess(map -> {
      map.put("pipo", "molo", 10, onSuccess(vd -> {
        map.put("pipo", "mili", onSuccess(vd2 -> {
          vertx.setTimer(20, l -> {
            getVertx().sharedData().getAsyncMap("foo", onSuccess(map2 -> {
              map2.get("pipo", onSuccess(res -> {
                assertEquals("mili", res);
                testComplete();
              }));
            }));
          });
        }));
      }));
    }));
    await();

This test fails with Ignite so for now it's ignored in this CM.

tsegismont commented 6 years ago

@agura I would like to open an issue on the Ignite project. This test passes with Infinispan.

agura commented 6 years ago

@tsegismont Thanks a lot! I'll take a look.

agura commented 6 years ago

Apache Ignite bug. See issue https://issues.apache.org/jira/browse/IGNITE-7401

agura commented 6 years ago

Workaround exists and described in Apache Ignite JIRA: https://issues.apache.org/jira/browse/IGNITE-7401?focusedCommentId=16326380&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16326380