Skip to content

Commit 03ad21d

Browse files
committed
Fix ignite tests when Ipv6 is used (on Jenkins ppc64le)
due to a limitation with ignite apache/ignite#10648 , when Ipv6 is used a path with a too long name is created causing this kind of error: ``` Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create page store work directory: /home/jenkins/712657a4/workspace/l_Camel_Core_Build_and_test_main/components/camel-ignite/ignite/work/db/0_0_0_0_0_0_0_1_lo_127_0_0_1_140_211_168_51_172_17_0_1_2605_bc80_3010_500_2ae2_df68_ddb5_b30d_enp0s1_2605_bc80_3010_500_49b6_174f_c257_989b_enp0s1_2605_bc80_3010_500_5c75_1cd_c31b_18bb_enp0s1_2605_bc80_3010_500_6901_e190_8428_d693_enp0s1_2605_bc80_3010_500_8701_f209_ec6e_1b7b_enp0s1_2605_bc80_3010_500_bfd3_a0e3_608c_e985_enp0s1_2605_bc80_3010_500_f816_3eff_fea2_6bbc_enp0s1_2605_bc80_3010_500_fdff_edb6_e567_8ce2_enp0s1_47500 at org.apache.ignite.internal.util.IgniteUtils.ensureDirectory(IgniteUtils.java:10028) ``` the workaround used is to override the node naming Signed-off-by: Aurélien Pupier <apupier@ibm.com>
1 parent 3ba2a9a commit 03ad21d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test-infra/camel-test-infra-ignite/src/main/java/org/apache/camel/test/infra/ignite/services/IgniteEmbeddedInfraService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
serviceAlias = "ignite")
3838
public class IgniteEmbeddedInfraService implements IgniteInfraService {
3939
private static final Logger LOG = LoggerFactory.getLogger(IgniteEmbeddedInfraService.class);
40+
private static int nodeCounter = 0;
4041

4142
private static final TcpDiscoveryIpFinder LOCAL_IP_FINDER = new TcpDiscoveryVmIpFinder(false) {
4243
{
@@ -67,6 +68,8 @@ public IgniteConfiguration createConfiguration() {
6768
System.setProperty("IGNITE_PERFORMANCE_SUGGESTIONS_DISABLED", "true");
6869
System.setProperty("IGNITE_NO_ASCII", "true");
6970
System.setProperty("IGNITE_CONSOLE_APPENDER", "true");
71+
// workaround to https://github.com/apache/ignite/issues/10648
72+
System.setProperty("IGNITE_OVERRIDE_CONSISTENT_ID", "node" + nodeCounter++);
7073

7174
IgniteConfiguration config = new IgniteConfiguration();
7275
config.setIgniteInstanceName(UUID.randomUUID().toString());

0 commit comments

Comments
 (0)