Closed mathieucarbou closed 7 years ago
I may be missing something but the fact that you have a PassthroughConnection
in that thread dump seems fishy!
We only use Galvan dependencies and we test our sample entity @ljacomet: here is our first simple test.
<dependency>
<groupId>org.terracotta</groupId>
<artifactId>galvan-support</artifactId>
<version>${galvan.version}</version>
<scope>test</scope>
</dependency>
We even see all the server logs flowing correctly, until an exception (on our side when creating the sample server entity), which kills the server.
public class SimpleGalvanIT {
private static final String OFFHEAP_RESOURCE = "primary-server-resource";
private static final String RESOURCE_CONFIG =
"<config xmlns:ohr='http://www.terracotta.org/config/offheap-resource'>"
+ "<ohr:offheap-resources>"
+ "<ohr:resource name=\"" + OFFHEAP_RESOURCE + "\" unit=\"MB\">64</ohr:resource>"
+ "</ohr:offheap-resources>" +
"</config>\n";
@ClassRule
public static Cluster CLUSTER =
new BasicExternalCluster(new File("target/galvan"), 1, emptyList(), "", RESOURCE_CONFIG, "");
@BeforeClass
public static void waitForActive() throws Exception {
CLUSTER.getClusterControl().waitForActive();
}
@Test
public void simpleTest_one_active() throws Exception {
StatisticConfiguration statisticConfiguration = new StatisticConfiguration()
.setAverageWindowDuration(1, TimeUnit.MINUTES)
.setHistorySize(100)
.setHistoryInterval(1, TimeUnit.SECONDS)
.setTimeToDisable(5, TimeUnit.SECONDS);
CacheFactory cacheFactory = new CacheFactory(CLUSTER.getConnectionURI().resolve("/pif"), statisticConfiguration);
cacheFactory.init();
try {
cacheFactory.getCache("paf"); // entity creation is there, it fails on server
} finally {
cacheFactory.close();
}
}
}
We start integrating galvan in m&m with @anthonydahanne and I have the SAME issue than with passthrough: invoke calls are bloquant.
It is the exact same issue as this one: https://github.com/Terracotta-OSS/tc-passthrough-testing/issues/70, but with Galvan, and not in a failover case this time: only 1 active, that fails.
threaddump-1481905905864.tdump.txt