]
Pedro Ruivo reassigned ISPN-12096:
----------------------------------
Assignee: Pedro Ruivo
ConfigurationBuilder::withProperties should not overwrite the
transactionMode
-----------------------------------------------------------------------------
Key: ISPN-12096
URL:
https://issues.redhat.com/browse/ISPN-12096
Project: Infinispan
Issue Type: Bug
Components: Hot Rod
Affects Versions: 11.0.1.Final, 12.0.0.Dev01
Reporter: Diego Lovison
Assignee: Pedro Ruivo
Priority: Major
ConfigurationBuilder::withProperties should not overwrite the transactionMode
{noformat}
if (transactionMode != null) {
config.transaction().transactionMode(TransactionMode.valueOf(transactionMode));
}
config.maxRetries(maxRetries).socketTimeout(connectionTimeout).connectionTimeout(connectionTimeout);
if (propertiesPath != null) {
Properties p = new Properties();
try (Reader r = new FileReader(propertiesPath)) {
p.load(r);
config.withProperties(p);
} catch (IOException e) {
throw new IllegalStateException("Something went wrong with provided
properties file:" + propertiesPath, e);
}
}
return config;
}{noformat}
{noformat}
infinispan.client.hotrod.auth_username=admin
infinispan.client.hotrod.auth_password=password
infinispan.client.hotrod.auth_realm=default
infinispan.client.hotrod.sasl_mechanism=SCRAM-SHA-512{noformat}