Comments (3)
This can be overriden in the configuration file, where you can provide your own stop/start commands.
We usually don't care about properly draining the nodes because we're going to replace all the data anyway, which is why a "dirty" stop is fine, but I agree that the service should be stopped so you don't need to stop/start it again.
We're using /etc/init.d/cassandra start
because we need to enforce the tokens in some cases, and pass them using a JVM flag. I guess we could workaround this by modifying the cassandra-env.sh file instead, although that could be a problem to some folks. We need to give this some thoughts.
It's interesting that /etc/init.d/cassandra stop
returns before the node is actually down. Looks like we need a bit more checks to make sure it is down before proceeding with the cleanup and restore tasks.
from cassandra-medusa.
@adejanovski Yes. Something like fetch PID of cassandra, stop cassandra and make sure PID doesn't exist.
root@ubuntu:# CassPid=$(pgrep -f cassandra)
root@ubuntu:# echo $CassPid
1376
from cassandra-medusa.
@adejanovski After stopping cassandra, added sleep to fix it. This may not be right solution but works for me.
restore_node.py
logging.info('Waiting for cassandra to stop. Sleeping for 10 seconds')
time.sleep(10)
Also, verify with CQL is not working properly. It should be due to medusa is not waiting for CQL native transport port (9042) to be available before running select query. I added sleep(20) after cassandra starts then verify worked.
[2020-02-13 04:30:28,983] INFO: Executing restore verify query: select * from tutorialspoint.emp;
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/medusa/cassandra_utils.py", line 84, in new_session raise Exception('Could not establish CQL session after {attempts}'.format(attempts=attempts)) Exception: Could not establish CQL session after 5
from cassandra-medusa.
Related Issues (20)
- store HOT 1
- AWS Access Key Id not match using aws iam user HOT 5
- Differential mode re-uploading all files from host when --prefix is not added HOT 1
- No manifest blob for backup HOT 2
- Potential Error in k8ssandra/medusa Image for ARM Architecture HOT 2
- Make S3 read timeout configurable HOT 1
- Support Python 3.12
- restore-cluster restoring instances from the incorrect location HOT 1
- Node hostname differs when invoking backup on commandline vs via gRPC client - K8s HOT 1
- Can medusa be installed on an admin node? HOT 2
- Unable to delete a backup HOT 1
- Make docker entrypoint 'last_restore_file' runtime-variable HOT 3
- Allow for user-provided GCP bucket encryption key HOT 3
- Allow use of Azure Workload Identity auth HOT 1
- backup-cluster backing up SSTables that have not changed. HOT 20
- Delete snapshot file after each successful upload
- Questions regarding cluster-restore using sstableloader HOT 2
- Medusa v0.22.0 apparently skipping backup for some nodes in the cluster HOT 1
- Backup tracking is broken in the grpc server
- GCP backups are failing if the storage class is unspecified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassandra-medusa.