Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 2.28 KB

MIGRATION.md

File metadata and controls

24 lines (16 loc) · 2.28 KB

Version Migration

From 3.x to 4.x

Node Requirements

This version of priam requires node 10.17 or 12.3 and above (not version 11 which has a strange compatibility break).

Config Setting Updates

Valid config options have now changed to be more directly aligned with cassandra-driver. The following legacy config settings must be changed:

Old Name(s) New Name Format Changes
timeout, getAConnectionTimeout socketOptions.connectTimeout None
hostPoolSize, poolSize pooling.coreConnectionsPerHost To replicate the legacy behavior, set pooling.coreConnectionsPerHost to { local: poolSize, remote: Math.ceil(poolSize / 2) }
cqlVersion, version protocolOptions.maxVersion None
user, username credentials.username None
password credentials.password None
hosts contactPoints None

Stream Error Handling

If you're passing a stream to be written to for query methods or using the .stream() method of queries, you must add an .on('error', ...) handler; otherwise, your node process may be terminated due to an unhandled error.