mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-09 16:33:35 +00:00
0754e9a34d81ce6e0cf28ba254a8bb8eef229b50
"Fixes for commitlog (debug) test failures related to shutdowns. Note that most the fixes here are only really related to the tests failing, not really real scylla runs. However, at some point we'll have real shutdown in scylla as well (not just hard exit), at which point this becomes more relevant there as well. Main issue was post-flush continuation chains for stats update remaining unexecuted, due to task reordering, once the commitlog object itself had been destroyed. This could have been handled by just making the stats object a shared pointer, but in general it seems more prudent to enforce having all tasks completed after shutdown. * Change commitlog shutdown to use gate+wait for all outstanding ops (flush, write, timer). Thus we can ensure everything is finished when returning from "shutdown". * Fix bug with "commitlog::clear" (test method) not doing the intended deed * Most importantly, fix the tests themselves, cleaning up old crud, and fixing invalid assumptions (CL behaviour changed quite a bit since tests were created), and remove races. Disclaimer: I've _never_ managed to reproduce the debug tests failing like in jenkins locally (though I managed to provoke other failures), but at least jenkins runs with this series have been clean. Knock knock."
#Scylla
##Building Scylla
In addition to required packages by Seastar, the following packages are required by Scylla.
Submodules
Scylla uses submodules, so make sure you pull the submodules first by doing:
git submodule init
git submodule update --recursive
Building scylla on Fedora
Installing required packages:
sudo yum install yaml-cpp-devel lz4-devel zlib-devel snappy-devel jsoncpp-devel thrift-devel antlr3-tool antlr3-C++-devel libasan libubsan
Building Fedora RPM
As a pre-requisite, you need to install Mock on your machine:
# Install mock:
sudo yum install mock
# Add user to the "mock" group:
usermod -a -G mock $USER && newgrp mock
Then, to build an RPM, run:
./dist/redhat/build_rpm.sh
The built RPM is stored in /var/lib/mock/<configuration>/result directory.
For example, on Fedora 21 mock reports the following:
INFO: Done(scylla-server-0.00-1.fc21.src.rpm) Config(default) 20 minutes 7 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-21-x86_64/result
Building Fedora-based Docker image
Build a Docker image with:
cd dist/docker
docker build -t <image-name> .
Run the image with:
docker run -i -t <image name>
Description
Languages
C++
72.1%
Python
26.7%
CMake
0.3%
GAP
0.3%
Shell
0.3%