Compare commits

...

20 Commits

Author SHA1 Message Date
null
758bef335f release: prepare for3.0.11 by yaronkaikov 2019-10-30 11:01:54 +02:00
Jenkins
739198ddeb release: prepare for 3.0.10 by hagitsegev 2019-08-14 14:59:05 -04:00
Amnon Heiman
2b9effb1ae APIClient: delete command should check for errors
delete commands do not return a value, still, it is possible that the
command will return a value different than OK.

In such a case, the error should be propagate to the caller via an
exception.

Fixes #65

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
Message-Id: <20190618135312.2776-1-amnon@scylladb.com>
(cherry picked from commit 2fac82434b)
2019-07-24 15:12:51 +03:00
Jenkins
b5ed0af1b3 release: prepare for 3.0.9 by hagitsegev 2019-07-24 12:10:10 +03:00
Jenkins
31187720c7 release: prepare for 3.0.8 by hagitsegev 2019-06-27 11:12:36 +03:00
Jenkins
c9dd098ce7 release: prepare for 3.0.7 by hagitsegev 2019-05-26 22:30:32 +03:00
Jenkins
3965bc0e25 release: prepare for 3.0.6 by penberg 2019-05-03 14:14:43 +03:00
Takuya ASADA
d1b1a4134c 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-03-28 13:46:18 +02:00
Jenkins
53ddd3be7c release: prepare for 3.0.5 by hagitsegev 2019-03-26 10:53:14 +02:00
Jenkins
1191757e27 release: prepare for 3.0.4 by hagitsegev 2019-03-04 10:14:46 +02:00
Jenkins
04e7784ad3 release: prepare for 3.0.3 by hagitsegev 2019-02-11 18:58:20 +02:00
Jenkins
8f616e5bc7 release: prepare for 3.0.2 by slivne 2019-01-30 16:14:51 +02:00
Jenkins
be11c2d920 release: prepare for 3.0.1 by hagitsegev 2019-01-20 12:42:18 +02:00
Shlomi Livne
18bf97a7ea release: prepare for 3.0.0
Signed-off-by: Shlomi Livne <shlomi@scylladb.com>
2019-01-13 08:38:10 +02:00
Hagit Segev
f703f64d72
release: prepare for 3.0-rc4 2019-01-04 08:25:25 +02:00
Hagit Segev
b7ddfc9415 release: prepare for 3.0-rc3 2018-12-21 20:18:53 +02:00
Hagit Segev
3d3fec0cf6 release: prepare for 3.0-rc2 2018-12-11 12:35:26 +02:00
Hagit Segev
fd99f65e8a release: prepare for 3.0-rc1 2018-10-31 12:13:07 +02:00
Calle Wilund
426b88b983 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:30:48 +03:00
Avi Kivity
dbb3d44d69 release: prepare for 3.0-rc0 2018-10-02 12:04:02 +03:00
7 changed files with 52 additions and 10 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
VERSION=666.development
VERSION=3.0.11
if test -f version
then

View File

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

View File

@ -141,7 +141,7 @@ fi
sudo rm -fv /var/cache/pbuilder/$PRODUCT-jmx-$TARGET.tgz
sudo PRODUCT=$PRODUCT DIST=$TARGET /usr/sbin/pbuilder clean --configfile ./dist/debian/pbuilderrc
sudo PRODUCT=$PRODUCT DIST=$TARGET /usr/sbin/pbuilder create --configfile ./dist/debian/pbuilderrc
sudo PRODUCT=$PRODUCT DIST=$TARGET /usr/sbin/pbuilder create --configfile ./dist/debian/pbuilderrc --aptconfdir dist/debian/apt
sudo PRODUCT=$PRODUCT 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

View File

@ -18,7 +18,7 @@ elif [ "$DIST" = "jessie" ] || [ "$DIST" = "stretch" ] || [ "$DIST" = "buster" ]
COMPONENTS="main contrib non-free"
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
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
else
echo "Unknown distribution: $DIST"

View File

@ -152,7 +152,11 @@ public class APIClient {
get(path, queryParams).delete();
return;
}
get(path).delete();
Response response = get(path).delete();
if (response.getStatus() != Response.Status.OK.getStatusCode()) {
throw getException("Scylla API server HTTP delete to URL '" + path + "' failed",
response.readEntity(String.class));
}
}
public void delete(String path) {

View File

@ -53,7 +53,16 @@ public class APIMBeanServer implements MBeanServer {
}
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

View File

@ -297,17 +297,16 @@ public class TableMetrics implements Metrics {
@SuppressWarnings("serial")
static class TableMetricObjectName extends javax.management.ObjectName {
private static final String FAKE_NAME = "a:a=a";
private final TableMetricStringNameFactory factory;
private final String metricName;
public TableMetricObjectName(TableMetricStringNameFactory factory, String metricName) throws MalformedObjectNameException {
super(FAKE_NAME);
super("");
this.factory = factory;
this.metricName = metricName;
}
@Override
public boolean isPropertyValuePattern(String property) {
return false;
@ -356,8 +355,7 @@ public class TableMetrics implements Metrics {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof TableMetricObjectName)) return false;
return getCanonicalName().equals(((TableMetricObjectName) o).getCanonicalName());
return getCanonicalName().equals(((ObjectName) o).getCanonicalName());
}
@Override
@ -372,6 +370,36 @@ public class TableMetrics implements Metrics {
}
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 {