made exception in init method unrecoverable
This commit is contained in:
parent
bef6cfd339
commit
bfdea4d7e3
@ -95,7 +95,7 @@ public class TbSaveToCustomCassandraTableNode implements TbNode {
|
||||
config = TbNodeUtils.convert(configuration, TbSaveToCustomCassandraTableNodeConfiguration.class);
|
||||
cassandraCluster = ctx.getCassandraCluster();
|
||||
if (cassandraCluster == null) {
|
||||
throw new TbNodeException("Unable to connect to Cassandra database");
|
||||
throw new TbNodeException("Unable to connect to Cassandra database", true);
|
||||
}
|
||||
ctx.addTenantProfileListener(this::onTenantProfileUpdate);
|
||||
onTenantProfileUpdate(ctx.getTenantProfile());
|
||||
|
||||
@ -139,7 +139,7 @@ public class TbSaveToCustomCassandraTableNodeTest extends AbstractRuleNodeUpgrad
|
||||
.isInstanceOf(TbNodeException.class)
|
||||
.hasMessage("Unable to connect to Cassandra database")
|
||||
.extracting(e -> ((TbNodeException) e).isUnrecoverable())
|
||||
.isEqualTo(false);
|
||||
.isEqualTo(true);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user