Page MenuHomePhabricator

Evaluate cassandra node driver 4.0.0 for upgrade
Open, Needs TriagePublic

Description

The new version of node Cassandra driver has been released, 4.0.0.

It contains some interesting new features like slow query monitoring. We need to test
RESTBase with the new node driver.

  1. Test locally
  2. Test in dev cluster

2.1 Do dumps in dev cluster
2.2 Enable change-prop in dev cluster. Given that ChangeProp in dev cluster has caused production outage before, I would vote for resolving T199428 and T199431 to be resolved, just to be on the safe side.

Event Timeline

There's an upgrade guide here: https://docs.datastax.com/en/developer/nodejs-driver/latest/upgrade-guide/#4-0

I think the only relevant change is setting the local data center, but this project is not impacted because it was already being set.

There's a shorthand property now:

Instead of
https://github.com/wikimedia/restbase-mod-table-cassandra/blob/v1.2.0/lib/index.js#L56-L64

You can use:

clientOptions.localDataCenter = conf.localDc;
clientOpions.policies = { reconnection: new reconnection.ExponentialReconnectionPolicy(100, 120000, true) };