Skip to content

Commit 98cca10

Browse files
authored
Update to version v1.0.7 (#42)
1 parent bc8dc96 commit 98cca10

File tree

28 files changed

+142
-67
lines changed

28 files changed

+142
-67
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Steps to reproduce the behavior.
1717
A clear and concise description of what you expected to happen.
1818

1919
**Please complete the following information about the solution:**
20-
- [ ] Version: [e.g. v1.0.6]
20+
- [ ] Version: [e.g. v1.0.7]
2121

2222
To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "_(SO0021) - Video On Demand workflow with AWS Step Functions, MediaConvert, MediaPackage, S3, CloudFront and DynamoDB. Version **v5.0.0**_". If the description does not contain the version information, you can look at the mappings section of the template:
2323

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.7] - 2024-05-22
9+
10+
### Security
11+
12+
- Upgrade Druid to v33.0.0
13+
- Upgrade Zookeeper to v3.9.3
14+
- Patched aws-cdk libraries
15+
- Upgrade user data scripts to use python 3.12
16+
- Upgrade Druid-Operator version to v1.3.0
17+
818
## [1.0.6] - 2024-04-02
919

1020
### Security

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,4 +840,4 @@ PSF-2.0 - https://opensource.org/license/python-2-0
840840
Python-2.0 - https://opensource.org/license/python-2-0
841841
Public Domain - None
842842
Unicode/ICU License - https://raw.githubusercontent.com/unicode-org/icu/main/icu4c/LICENSE
843-
Unlicense - https://opensource.org/licenses/Unlicense
843+
Unlicense - https://opensource.org/licenses/Unlicense

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ It is important to note that the redirect URI on the IDP side should be configur
302302
- **Druid version**: Apache Druid release version (eg. 27.0.0) that you want to run. It is recommended to use the latest stable [Druid version](#https://druid.apache.org/downloads.html).
303303
304304
```
305-
"druidVersion": "31.0.0",
305+
"druidVersion": "33.0.0",
306306
```
307307
308308
- **Druid cluster name**: A sequence of ASCII characters that uniquely identifies each Druid cluster. If there are multiple deployments, please make sure that you have an unique cluster name for each cluster. The cluster name will be appended to the CloudFormation stack name.

deployment/build-s3-dist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Parameters:
2222
# - source-bucket-base-name: Name for the S3 bucket location where the template will source the Lambda
2323
# code from. The template will append '-[region_name]' to this bucket name.
24-
# For example: ./build-s3-dist.sh solutions v1.0.6
24+
# For example: ./build-s3-dist.sh solutions v1.0.7
2525
# The template will then expect the source code to be located in the solutions-[region_name] bucket
2626
# - solution-name: name of the solution for consistency
2727
# - version-code: version of the package
@@ -58,7 +58,7 @@ usage()
5858
{
5959
echo "Usage: $0 bucket solution-name version"
6060
echo "Please provide the base source bucket name, trademarked solution name, and version."
61-
echo "For example: ./build-s3-dist.sh mybucket my-solution v1.0.6"
61+
echo "For example: ./build-s3-dist.sh mybucket my-solution v1.0.7"
6262
exit 1
6363
}
6464

source/DruidCloudwatchExtension/pom.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<groupId>com.amazon.solutions.druid.extensions</groupId>
77
<artifactId>druid-cloudwatch</artifactId>
88
<description>druid-cloudwatch</description>
9-
<version>25.0.0</version>
9+
<version>33.0.0</version>
1010

1111
<properties>
12-
<druid.version>25.0.0</druid.version>
12+
<druid.version>33.0.0</druid.version>
1313
<maven.compiler.source>17</maven.compiler.source>
1414
<maven.compiler.target>17</maven.compiler.target>
1515
<jdk.version>17</jdk.version>
@@ -19,9 +19,23 @@
1919
<!-- https://mvnrepository.com/artifact/org.apache.druid/druid-core -->
2020
<dependency>
2121
<groupId>org.apache.druid</groupId>
22-
<artifactId>druid-core</artifactId>
22+
<artifactId>druid-processing</artifactId>
2323
<version>${druid.version}</version>
2424
<scope>provided</scope>
25+
<exclusions>
26+
<exclusion>
27+
<groupId>io.netty</groupId>
28+
<artifactId>netty</artifactId>
29+
</exclusion>
30+
<exclusion>
31+
<groupId>commons-beanutils</groupId>
32+
<artifactId>commons-beanutils</artifactId>
33+
</exclusion>
34+
<exclusion>
35+
<groupId>net.minidev</groupId>
36+
<artifactId>json-smart</artifactId>
37+
</exclusion>
38+
</exclusions>
2539
</dependency>
2640
<dependency>
2741
<groupId>org.projectlombok</groupId>
@@ -163,4 +177,4 @@
163177
</plugin>
164178
</plugins>
165179
</build>
166-
</project>
180+
</project>

source/DruidCloudwatchExtension/src/main/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitterConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@Data
1414
public class CloudwatchEmitterConfig {
1515
static final int CLOUDWATCH_METRICS_MEMORY_LIMIT = 100000000;
16-
static final String SOLUTION_VERSION = "v1.0.6";
16+
static final String SOLUTION_VERSION = "v1.0.7";
1717

1818
@JsonProperty("batchSize")
1919
@Nullable
@@ -48,4 +48,4 @@ public String toString() {
4848

4949
return sb.toString();
5050
}
51-
}
51+
}

source/DruidCloudwatchExtension/src/test/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitterConfigTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package com.amazon.solutions.druid.cloudwatch;
66

77
import org.junit.Test;
8-
import com.fasterxml.jackson.databind.ObjectMapper;
98
import static org.junit.Assert.assertEquals;
109
import org.junit.Assert;
1110

@@ -46,16 +45,16 @@ public void testGetBatchSize_withDefaultBatchSize() {
4645
@Test
4746
public void testToString_withValidConfig() {
4847
// arrange
49-
CloudwatchEmitterConfig config = new CloudwatchEmitterConfig("test-cluster", 200, "v1.0.6");
48+
CloudwatchEmitterConfig config = new CloudwatchEmitterConfig("test-cluster", 200, "v1.0.7");
5049

5150
// act
5251
String actual = config.toString();
5352

5453
// assert
5554
Assert.assertTrue(actual.contains("test-cluster"));
5655
Assert.assertTrue(actual.contains("200"));
57-
Assert.assertTrue(actual.contains("v1.0.6"));
56+
Assert.assertTrue(actual.contains("v1.0.7"));
5857
Assert.assertTrue(actual.contains("CloudwatchEmitterConfig"));
5958
}
6059

61-
}
60+
}

source/DruidCloudwatchExtension/src/test/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void testEmit_withServiceMetricEvent() throws JsonProcessingException {
188188
ServiceMetricEvent metricEvent = metricEventBuilder
189189
.setDimension("key1", "value1")
190190
.setDimension("key2", "value2")
191-
.build("task/success/count", 1)
191+
.setMetric("task/success/count", 1)
192192
.build("some-service", "some-task");
193193
when(druidMonitoringMetricsFactory.createCloudwatchMetric(any(AlertEvent.class)))
194194
.thenReturn(new MetricDatum().withMetricName("Druid-Alert"));

source/DruidCloudwatchExtension/src/test/java/com/amazon/solutions/druid/cloudwatch/DruidMonitoringMetricsFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public void testCreateCloudwatchMetric_withServiceMetricEvent() {
8383
ServiceMetricEvent metricEvent = metricEventBuilder
8484
.setDimension("key1", "value1")
8585
.setDimension("key2", "value2")
86-
.build(metricCreateTime, "task/success/count", 1)
86+
.setMetric("task/success/count", 1)
87+
.setCreatedTime(metricCreateTime)
8788
.build("some-service", "some-task");
8889

8990
// Act

0 commit comments

Comments
 (0)