Compare commits
16 Commits
master
...
branch-2.3
Author | SHA1 | Date | |
---|---|---|---|
|
10bc7353a9 | ||
|
bf97d12d77 | ||
|
b575bc9520 | ||
|
6b9248fad0 | ||
|
9b9ba8aeb9 | ||
|
867af35f6f | ||
|
25f1981b44 | ||
|
5fcbf8ed48 | ||
|
5f01f7a153 | ||
|
8e6ecabfe6 | ||
|
016b315e91 | ||
|
15aacb40fc | ||
|
5eb0883cd3 | ||
|
24c90a3587 | ||
|
1dc4338c5b | ||
|
1b1b31d9cf |
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION=666.development
|
VERSION=2.3.6
|
||||||
|
|
||||||
if test -f version
|
if test -f version
|
||||||
then
|
then
|
||||||
|
1
dist/debian/apt/apt.conf.d/99jessie-backports
vendored
Normal file
1
dist/debian/apt/apt.conf.d/99jessie-backports
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
Acquire::Check-Valid-Until "false";
|
13
dist/debian/build_deb.sh
vendored
13
dist/debian/build_deb.sh
vendored
@ -131,19 +131,18 @@ if [ "$TARGET" != "trusty" ]; then
|
|||||||
pystache dist/common/systemd/scylla-jmx.service.mustache "{ $MUSTACHE_DIST }" > debian/scylla-jmx.service
|
pystache dist/common/systemd/scylla-jmx.service.mustache "{ $MUSTACHE_DIST }" > debian/scylla-jmx.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp ./dist/debian/pbuilderrc ~/.pbuilderrc
|
|
||||||
sudo rm -fv /var/cache/pbuilder/scylla-jmx-$TARGET.tgz
|
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 clean --configfile ./dist/debian/pbuilderrc
|
||||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder create
|
sudo -E DIST=$TARGET /usr/sbin/pbuilder create --configfile ./dist/debian/pbuilderrc --aptconfdir dist/debian/apt
|
||||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder update
|
sudo -E DIST=$TARGET /usr/sbin/pbuilder update --configfile ./dist/debian/pbuilderrc
|
||||||
if [ "$TARGET" = "jessie" ]; then
|
if [ "$TARGET" = "jessie" ]; then
|
||||||
echo "apt-get install -y -t jessie-backports ca-certificates-java" > build/jessie-pkginst.sh
|
echo "apt-get install -y -t jessie-backports ca-certificates-java" > build/jessie-pkginst.sh
|
||||||
chmod a+rx 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
|
||||||
elif [ "$TARGET" = "bionic" ]; then
|
elif [ "$TARGET" = "bionic" ]; then
|
||||||
echo "apt-get install -y ca-certificates-java openjdk-8-jdk-headless" > build/bionic-workaround.sh
|
echo "apt-get install -y ca-certificates-java openjdk-8-jdk-headless" > build/bionic-workaround.sh
|
||||||
echo "update-ca-certificates -f" >> build/bionic-workaround.sh
|
echo "update-ca-certificates -f" >> build/bionic-workaround.sh
|
||||||
chmod a+rx build/bionic-workaround.sh
|
chmod a+rx build/bionic-workaround.sh
|
||||||
sudo -E DIST=$TARGET /usr/sbin/pbuilder execute --save-after-exec build/bionic-workaround.sh
|
sudo -E DIST=$TARGET /usr/sbin/pbuilder execute --configfile ./dist/debian/pbuilderrc --save-after-exec build/bionic-workaround.sh
|
||||||
fi
|
fi
|
||||||
sudo -E DIST=$TARGET pdebuild --buildresult build/debs
|
sudo -E DIST=$TARGET pdebuild --configfile ./dist/debian/pbuilderrc --buildresult build/debs
|
||||||
|
2
dist/debian/pbuilderrc
vendored
2
dist/debian/pbuilderrc
vendored
@ -18,7 +18,7 @@ elif [ "$DIST" = "jessie" ] || [ "$DIST" = "stretch" ] || [ "$DIST" = "buster" ]
|
|||||||
COMPONENTS="main contrib non-free"
|
COMPONENTS="main contrib non-free"
|
||||||
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
||||||
if [ "$DIST" = "jessie" ]; then
|
if [ "$DIST" = "jessie" ]; then
|
||||||
OTHERMIRROR="deb http://httpredir.debian.org/debian jessie-backports main"
|
OTHERMIRROR="deb http://archive.debian.org/debian jessie-backports main"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Unknown distribution: $DIST"
|
echo "Unknown distribution: $DIST"
|
||||||
|
7
dist/redhat/build_rpm.sh
vendored
7
dist/redhat/build_rpm.sh
vendored
@ -76,5 +76,12 @@ SCYLLA_RELEASE=$(cat build/SCYLLA-RELEASE-FILE)
|
|||||||
git archive --format=tar --prefix=scylla-jmx-$SCYLLA_VERSION/ HEAD -o build/scylla-jmx-$VERSION.tar
|
git archive --format=tar --prefix=scylla-jmx-$SCYLLA_VERSION/ HEAD -o build/scylla-jmx-$VERSION.tar
|
||||||
pystache dist/redhat/scylla-jmx.spec.mustache "{ \"version\": \"$SCYLLA_VERSION\", \"release\": \"$SCYLLA_RELEASE\" }" > build/scylla-jmx.spec
|
pystache dist/redhat/scylla-jmx.spec.mustache "{ \"version\": \"$SCYLLA_VERSION\", \"release\": \"$SCYLLA_RELEASE\" }" > build/scylla-jmx.spec
|
||||||
|
|
||||||
|
# mock generates files owned by root, fix this up
|
||||||
|
fix_ownership() {
|
||||||
|
sudo chown "$(id -u):$(id -g)" -R "$@"
|
||||||
|
}
|
||||||
|
|
||||||
sudo mock --buildsrpm --root=$TARGET --resultdir=`pwd`/build/srpms --spec=build/scylla-jmx.spec --sources=build/scylla-jmx-$VERSION.tar
|
sudo mock --buildsrpm --root=$TARGET --resultdir=`pwd`/build/srpms --spec=build/scylla-jmx.spec --sources=build/scylla-jmx-$VERSION.tar
|
||||||
|
fix_ownership build/srpms
|
||||||
sudo mock --rebuild --root=$TARGET --resultdir=`pwd`/build/rpms build/srpms/scylla-jmx-$VERSION*.src.rpm
|
sudo mock --rebuild --root=$TARGET --resultdir=`pwd`/build/rpms build/srpms/scylla-jmx-$VERSION*.src.rpm
|
||||||
|
fix_ownership build/rpms
|
||||||
|
@ -53,7 +53,16 @@ public class APIMBeanServer implements MBeanServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ObjectName prepareForRemote(final ObjectName n) {
|
private static ObjectName prepareForRemote(final ObjectName n) {
|
||||||
return ObjectName.getInstance(n);
|
/*
|
||||||
|
* ObjectName.getInstance has changed in JDK (micro) updates so it no longer applies
|
||||||
|
* overridable methods -> wrong name published.
|
||||||
|
* Fix by doing explicit ObjectName instansiation.
|
||||||
|
*/
|
||||||
|
try {
|
||||||
|
return new ObjectName(n.getCanonicalName());
|
||||||
|
} catch (MalformedObjectNameException e) {
|
||||||
|
throw new IllegalArgumentException(n.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -267,17 +267,16 @@ public class TableMetrics implements Metrics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static class TableMetricObjectName extends javax.management.ObjectName {
|
static class TableMetricObjectName extends javax.management.ObjectName {
|
||||||
private static final String FAKE_NAME = "a:a=a";
|
|
||||||
|
|
||||||
private final TableMetricStringNameFactory factory;
|
private final TableMetricStringNameFactory factory;
|
||||||
private final String metricName;
|
private final String metricName;
|
||||||
|
|
||||||
public TableMetricObjectName(TableMetricStringNameFactory factory, String metricName) throws MalformedObjectNameException {
|
public TableMetricObjectName(TableMetricStringNameFactory factory, String metricName) throws MalformedObjectNameException {
|
||||||
super(FAKE_NAME);
|
super("");
|
||||||
this.factory = factory;
|
this.factory = factory;
|
||||||
this.metricName = metricName;
|
this.metricName = metricName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isPropertyValuePattern(String property) {
|
public boolean isPropertyValuePattern(String property) {
|
||||||
return false;
|
return false;
|
||||||
@ -326,8 +325,7 @@ public class TableMetrics implements Metrics {
|
|||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (!(o instanceof TableMetricObjectName)) return false;
|
return getCanonicalName().equals(((ObjectName) o).getCanonicalName());
|
||||||
return getCanonicalName().equals(((TableMetricObjectName) o).getCanonicalName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -342,6 +340,36 @@ public class TableMetrics implements Metrics {
|
|||||||
}
|
}
|
||||||
return getCanonicalName().equals(name.getCanonicalName());
|
return getCanonicalName().equals(name.getCanonicalName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPattern() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDomainPattern() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPropertyPattern() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPropertyListPattern() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPropertyValuePattern() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static interface TableMetricStringNameFactory {
|
static interface TableMetricStringNameFactory {
|
||||||
|
Loading…
Reference in New Issue
Block a user