Compare commits

...

16 Commits

Author SHA1 Message Date
Jenkins
10bc7353a9 release: prepare for 2.3.6 by hagitsegev 2019-08-17 13:12:56 +03:00
Jenkins
bf97d12d77 release: prepare for 2.3.5 by hagitsegev 2019-04-17 11:48:10 +03:00
Takuya ASADA
b575bc9520 dist/debian: change jessie-backport repo URL
Since jessie-backports repo is no longer maintained, repo URL need to
change to archive.debian.org, also need to specify
Acquire::Check-Valid-Until=false.

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Message-Id: <20190327120916.25036-1-syuu@scylladb.com>
2019-04-16 14:30:40 +03:00
Jenkins
6b9248fad0 release: prepare for 2.3.4 by hagitsegev 2019-03-18 12:44:25 +02:00
Jenkins
9b9ba8aeb9 release: prepare for 2.3.3 by hagitsegev 2019-02-19 14:02:50 +02:00
Jenkins
867af35f6f release: prepare for 2.3.2 2019-01-08 14:40:42 +02:00
Calle Wilund
25f1981b44 scylla-jmx: Fix tablemetricsobjectname breakage
Fixes #57

The usage of TableMetricsObjectName-yada-yada relies on translating the
"fake" objectname to a canonical one on remote
publication/serialization. However, the implementation of
ObjectName.getInstance has changed in JDK (micro) updates so it no
longer applies overridable methods -> wrong name published.

Fix by doing explicit ObjectName instansiation.
Message-Id: <20181023132005.23099-1-calle@scylladb.com>

(cherry picked from commit ca3fa8de20)
2018-10-23 16:31:11 +03:00
Hagit Segev
5fcbf8ed48 release: prepare for 2.3.1 2018-10-21 12:18:39 +03:00
Pekka Enberg
5f01f7a153 release: prepare for 2.3.0 2018-09-14 13:53:10 +03:00
Pekka Enberg
8e6ecabfe6 release: prepare for 2.3.rc3 2018-09-07 07:42:41 +03:00
Avi Kivity
016b315e91 dist/debian: fix some pbuilder invocations
pbuilder expects --configfile to come after the subcommand name; humor it.
2018-09-06 18:55:09 +03:00
Avi Kivity
15aacb40fc dist/debian: robustly enable networking in build_deb.sh
build_deb is randomly failing due to not picking up USENETWORK=yes
in the config file. Fix by switching to explicit specification of
the pbuilder configuration file, instead of hoping pbuilder will
pick it up from root's home directory.

Partial backport of cd1c79f90f.
2018-09-05 15:28:50 +03:00
Hagit Segev
5eb0883cd3 support 2.3 RC2 2018-08-19 20:12:46 +03:00
Avi Kivity
24c90a3587 dist: redhat: fix up bad file ownership of rpms/srpms
mock outputs files owned by root. This causes attempts
by scripts that want to junk the working directory (typically
continuous integration) to fail on permission errors.

Fixup those permissions after the fact.
Message-Id: <20180719163258.4393-1-avi@scylladb.com>

(cherry picked from commit b4d983b45a)
2018-07-26 14:23:14 +03:00
Pekka Enberg
1dc4338c5b release: prepare for 2.3.rc1 2018-07-24 09:24:14 +03:00
Pekka Enberg
1b1b31d9cf release: prepare for 2.3.rc0 2018-07-11 09:31:02 +03:00
7 changed files with 59 additions and 15 deletions

View File

@ -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

View File

@ -0,0 +1 @@
Acquire::Check-Valid-Until "false";

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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 {