Related to T2186
Details
- Reviewers
douardda ardumont - Group Reviewers
Reviewers - Commits
- rDSTOeb155ad3d780: Add Cassandra backend.
Diff Detail
- Repository
- rDSTO Storage manager
- Branch
- cassandra-backend3
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 10359 Build 15408: tox-on-jenkins Jenkins Build 15407: arc lint + arc unit
Event Timeline
Build was aborted
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/904/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/904/console
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/905/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/907/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/908/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/908/console
Build was aborted
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/909/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/909/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/910/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/910/console
Build was aborted
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/911/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/911/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/912/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/912/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/913/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/913/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/914/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/914/console
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/922/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/923/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/923/console
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/924/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/925/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/925/console
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/928/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/929/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/929/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/931/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/931/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/932/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/932/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/933/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/933/console
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/936/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/937/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/937/console
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/938/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/939/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/940/ for more details.
Looks good to me, but it would really be nice to have a bit more documentation/explanation on how stuff work and are organized in Cassandra, be it in the code itself and as docu material in doc/
I believe the overrides of postgres specific tests is no longer needed.
Also I've a few comments.
swh/storage/cassandra/cql.py | ||
---|---|---|
35 | What's this for? | |
93 | No docstring at all? | |
124 | Does it make sense not to wait a bit between read/write attempts? |
Looks good.
Small remarks that can be taken care later (after the first landing ;)
I'm mostly unsure about:
- migration. -> I guess we will have to use python script to migrate when adapting the model.
- date precision. It seems we are losing some around the end of the diff.
swh/storage/cassandra/cql.py | ||
---|---|---|
112 | we might be able to move the retry behavior in the retry proxy storage. | |
140 | statement | |
swh/storage/cassandra/storage.py | ||
47 | why not call it self.backend? | |
224 | <strike>one</strike> at least one | |
468 | other endpoints no longer display the docstring, so might as well remove it as well here (and for other occurrences) |
apply comments.
swh/storage/cassandra/cql.py | ||
---|---|---|
35 | boilerplate to make python-cassandra happy. (this used to be the default config, but now it raises a warning if I don't provide it) Basically it tells it to hit the right server directly when sending a query (TokenAwarePolicy), and if there's more than one, then pick one at random that's in the same datacenter as the client (DCAwareRoundRobinPolicy) | |
112 | It's lower-level retries (it may be called multiple times by the same endpoint), so not exactly the same. | |
124 | it already waits for 100ms because of the timeout | |
swh/storage/cassandra/storage.py | ||
47 | Because we already call CassandraStorage/Storage/InMemoryStorage backends. Calling this a backend too would be confusing. |
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/942/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/943/ for more details.
run all tests in the samee tox environment, it wastes less time installing deps on jenkins
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/944/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/945/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/946/ for more details.