Skip to content

Commit 3df9295

Browse files
Merge branch 'master' into feature/client-gen
2 parents a1e5b6e + a80428f commit 3df9295

File tree

21 files changed

+567
-31
lines changed

21 files changed

+567
-31
lines changed

.github/workflows/docker-release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
dse-version: [6.8.25, 6.8.26, 6.8.28, 6.8.29, 6.8.30, 6.8.31, 6.8.32, 6.8.33, 6.8.34, 6.8.35, 6.8.36, 6.8.37]
13+
dse-version: [6.8.25, 6.8.26, 6.8.28, 6.8.29, 6.8.30, 6.8.31, 6.8.32, 6.8.33, 6.8.34, 6.8.35, 6.8.36, 6.8.37, 6.8.38]
1414
image-base: [jdk8, jdk11]
1515
include:
16-
- dse-version: 6.8.37
16+
- dse-version: 6.8.38
1717
latest: true
1818
runs-on: ubuntu-latest
1919
steps:
@@ -106,10 +106,10 @@ jobs:
106106
strategy:
107107
fail-fast: false
108108
matrix:
109-
dse-version: [6.8.25, 6.8.26, 6.8.28, 6.8.29, 6.8.30, 6.8.31, 6.8.32, 6.8.33, 6.8.34, 6.8.35, 6.8.36, 6.8.37]
109+
dse-version: [6.8.25, 6.8.26, 6.8.28, 6.8.29, 6.8.30, 6.8.31, 6.8.32, 6.8.33, 6.8.34, 6.8.35, 6.8.36, 6.8.37, 6.8.38]
110110
image-base: [ubi8]
111111
include:
112-
- dse-version: 6.8.37
112+
- dse-version: 6.8.38
113113
latest: true
114114
runs-on: ubuntu-latest
115115
steps:
@@ -174,9 +174,9 @@ jobs:
174174
strategy:
175175
fail-fast: false
176176
matrix:
177-
cassandra-version: [3.11.7, 3.11.8, 3.11.11, 3.11.12, 3.11.13, 3.11.14, 3.11.15]
177+
cassandra-version: [3.11.7, 3.11.8, 3.11.11, 3.11.12, 3.11.13, 3.11.14, 3.11.15, 3.11.16]
178178
include:
179-
- cassandra-version: 3.11.15
179+
- cassandra-version: 3.11.16
180180
latest: true
181181
runs-on: ubuntu-latest
182182
steps:

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ Changelog for Management API, new PRs should update the `main / unreleased` sect
1010
```
1111

1212
## unreleased
13-
[CHANGE] [#323](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/323) Rename Maven artifact groupId from com.datastax to io.k8ssandra
14-
[FEATURE] [#323](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/323) Add OpenAPI Java client generation
15-
[FEATURE] [#337](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/337) Publish Maven artifacts to Cloudsmith.io
16-
[FEATURE] [#326](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/326) Provide topology endpoints in OpenAPI client
13+
14+
## v0.1.67 (2023-09-29)
15+
* [CHANGE] [#323](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/323) Rename Maven artifact groupId from com.datastax to io.k8ssandra
16+
* [FEATURE] [#323](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/323) Add OpenAPI Java client generation
17+
* [FEATURE] [#337](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/337) Publish Maven artifacts to Cloudsmith.io
18+
* [FEATURE] [#375](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/375) Add SSL/TLS hot reloading and allow TLS v1.3
19+
* [FEATURE] [#349](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/349) Metrics endpoint should allow querying a subset
20+
* [FEATURE] [#395](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/395) Add Cassandra version 3.11.16
21+
* [FEATURE] [#380](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/380) Add DSE 6.8.38
22+
* [FEATURE] [#326](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/326) Provide topology endpoints in OpenAPI client
1723
[FEATURE] [#345](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/345) Implement host related methods
18-
[BUGFIX] [#339](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/339) OpenAPI client publish does not also publish other artifacts
24+
* [BUGFIX] [#339](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/339) OpenAPI client publish does not also publish other artifacts
1925

2026

2127
## Releases older than this point did not maintain a Changelog in the format above. The changes below were generated by the gen_changelog.sh script.

Dockerfile-oss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG CASSANDRA_VERSION=3.11.15
1+
ARG CASSANDRA_VERSION=3.11.16
22

33
FROM --platform=$BUILDPLATFORM maven:3.8.7-eclipse-temurin-11 as builder
44

Dockerfile-oss.ubi8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG UBI_MAJOR=8
22
ARG UBI_BASETAG=latest
3-
ARG CASSANDRA_VERSION=3.11.15
3+
ARG CASSANDRA_VERSION=3.11.16
44
FROM registry.access.redhat.com/ubi${UBI_MAJOR}/ubi-minimal:${UBI_BASETAG} AS builder
55

66
ARG URL_PREFIX=https://dlcdn.apache.org/cassandra

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ The following versions of Cassandra and DSE are published to Docker and supporte
6363
| 3.11.13 | 4.0.5 | | 6.8.30 |
6464
| 3.11.14 | 4.0.6 | | 6.8.31 |
6565
| 3.11.15 | 4.0.7 | | 6.8.32 |
66-
| | 4.0.8 | | 6.8.33 |
66+
| 3.11.16 | 4.0.8 | | 6.8.33 |
6767
| | 4.0.9 | | 6.8.34 |
6868
| | 4.0.10 | | 6.8.35 |
6969
| | | | 6.8.36 |
7070
| | | | 6.8.37 |
71+
| | | | 6.8.38 |
7172

7273
- All supported images are available in `linux/amd64` or `linux/arm64` formats.
7374
- All images (with the exception of Cassandra trunk) are available as an Ubuntu based image or a RedHat UBI 8 based image.

dse-68/Dockerfile.jdk11

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV DSE_HOME /opt/dse
1010
ENV DSE_AGENT_HOME /opt/agent
1111

1212
# Get commandline parameters
13-
ARG DSE_VERSION=6.8.37
13+
ARG DSE_VERSION=6.8.38
1414
ARG URL_PREFIX=https://downloads.datastax.com/enterprise
1515
ARG TARBALL=dse-${DSE_VERSION}-bin.tar.gz
1616
ARG DOWNLOAD_URL=${URL_PREFIX}/${TARBALL}

dse-68/Dockerfile.jdk8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV DSE_HOME /opt/dse
1010
ENV DSE_AGENT_HOME /opt/agent
1111

1212
# Get commandline parameters
13-
ARG DSE_VERSION=6.8.37
13+
ARG DSE_VERSION=6.8.38
1414
ARG URL_PREFIX=https://downloads.datastax.com/enterprise
1515
ARG TARBALL=dse-${DSE_VERSION}-bin.tar.gz
1616
ARG DOWNLOAD_URL=${URL_PREFIX}/${TARBALL}

dse-68/Dockerfile.ubi8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG DSE_VERSION=6.8.37
1+
ARG DSE_VERSION=6.8.38
22
ARG UBI_MAJOR=8
33
ARG UBI_BASETAG=latest
44

management-api-agent-common/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
<groupId>org.assertj</groupId>
6565
<artifactId>assertj-core</artifactId>
6666
<version>${assertj.version}</version>
67+
<groupId>org.mockito</groupId>
68+
<artifactId>mockito-core</artifactId>
69+
<version>5.5.0</version>
6770
<scope>test</scope>
6871
</dependency>
6972
<dependency>

management-api-agent-common/src/main/java/com/datastax/mgmtapi/util/JobExecutor.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
import java.util.concurrent.CompletableFuture;
1212
import java.util.concurrent.ExecutorService;
1313
import java.util.concurrent.Executors;
14+
import java.util.concurrent.ThreadPoolExecutor;
1415
import org.apache.cassandra.utils.Pair;
1516

1617
public class JobExecutor {
1718
ExecutorService executorService = Executors.newFixedThreadPool(1);
18-
Cache<String, Job> jobCache = CacheBuilder.newBuilder().maximumSize(1000).build();
19+
Cache<String, Job> jobCache = CacheBuilder.newBuilder().recordStats().maximumSize(1000).build();
1920

2021
public Pair<String, CompletableFuture<Void>> submit(String jobType, Runnable runnable) {
2122
// Where do I create the job details? Here? Add it to the Cache first?
@@ -57,4 +58,12 @@ public void updateJob(Job job) {
5758
public Job getJobWithId(String jobId) {
5859
return jobCache.getIfPresent(jobId);
5960
}
61+
62+
public int runningTasks() {
63+
return ((ThreadPoolExecutor) executorService).getActiveCount();
64+
}
65+
66+
public int queuedTasks() {
67+
return ((ThreadPoolExecutor) executorService).getQueue().size();
68+
}
6069
}

0 commit comments

Comments
 (0)