Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Availability - Process Crash
-
Critical
-
Normal
-
User Report
-
All
-
None
-
Description
CASSANDRA-16144 recently introduced repeated calls to clientEncOptions.applyConfig() for each encryption parameter passed to the sstableloader command line.
This consistently fails because applyConfig() can be called only once due to the ensureConfigNotApplied() check at the beginning of the method.
This call is not necessary since the with...() methods will invoke applyConfig() each time:
public EncryptionOptions withTrustStore(String truststore) { return new EncryptionOptions(keystore, keystore_password, truststore, truststore_password, cipher_suites, protocol, algorithm, store_type, require_client_auth, require_endpoint_verification, enabled, optional).applyConfig(); }
I'll build a patch for this with the appropriate unit test.
Attachments
Issue Links
- is caused by
-
CASSANDRA-16144 TLS connections to the storage port on a node without server encryption configured causes java.io.IOException accessing missing keystore
- Resolved