Compare commits
9 Commits
master
...
branch-2.2
Author | SHA1 | Date | |
---|---|---|---|
|
e093231e10 | ||
|
4b6c1f9fd1 | ||
|
fefe06f1d1 | ||
|
2e6a37892c | ||
|
003efee260 | ||
|
4d3a6bb72c | ||
|
1910a00800 | ||
|
557c4943c0 | ||
|
5aaa5faee7 |
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=666.development
|
||||
VERSION=2.2.2
|
||||
|
||||
if test -f version
|
||||
then
|
||||
|
11
dist/debian/build_deb.sh
vendored
11
dist/debian/build_deb.sh
vendored
@ -113,14 +113,13 @@ fi
|
||||
cp dist/common/systemd/scylla-jmx.service.in debian/scylla-jmx.service
|
||||
sed -i -e "s#@@SYSCONFDIR@@#/etc/default#g" debian/scylla-jmx.service
|
||||
|
||||
cp ./dist/debian/pbuilderrc ~/.pbuilderrc
|
||||
sudo rm -fv /var/cache/pbuilder/scylla-jmx-$TARGET.tgz
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder clean
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder create
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder update
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder clean --configfile ./dist/debian/pbuilderrc
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder create --configfile ./dist/debian/pbuilderrc
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder update --configfile ./dist/debian/pbuilderrc
|
||||
if [ "$TARGET" = "jessie" ]; then
|
||||
echo "apt-get install -y -t jessie-backports ca-certificates-java" > build/jessie-pkginst.sh
|
||||
chmod a+rx build/jessie-pkginst.sh
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder execute build/jessie-pkginst.sh
|
||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder execute --configfile ./dist/debian/pbuilderrc build/jessie-pkginst.sh
|
||||
fi
|
||||
sudo -E DIST=$TARGET pdebuild --buildresult build/debs
|
||||
sudo -E DIST=$TARGET pdebuild --configfile ./dist/debian/pbuilderrc --buildresult build/debs
|
||||
|
4
dist/redhat/build_rpm.sh
vendored
4
dist/redhat/build_rpm.sh
vendored
@ -52,6 +52,10 @@ if [ -z "$TARGET" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$TARGET" = epel-7-x86_64 ]]; then
|
||||
TARGET=./dist/redhat/mock/scylla-jmx-epel-7-x86_64.cfg
|
||||
fi
|
||||
|
||||
if [ ! -f /usr/bin/mock ]; then
|
||||
pkg_install mock
|
||||
fi
|
||||
|
@ -105,10 +105,12 @@ public class FailureDetector extends APIMBean implements FailureDetectorMBean {
|
||||
ep.setAliave(obj.getBoolean("is_alive"));
|
||||
ep.setUpdateTimestamp(obj.getJsonNumber("update_time").longValue());
|
||||
JsonArray states = obj.getJsonArray("application_state");
|
||||
if (states != null) {
|
||||
for (int j = 0; j < states.size(); j++) {
|
||||
JsonObject state = states.getJsonObject(j);
|
||||
ep.addApplicationState(state.getInt("application_state"), state.getString("value"));
|
||||
}
|
||||
}
|
||||
res.put(obj.getString("addrs"), ep);
|
||||
}
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user