File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed
src/main/java/com/amazonaws/encryptionsdk/kms Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.3.5
4
+
5
+ (nothing yet)
6
+
7
+ ## 1.3.4
8
+
9
+ ### Minor Changes
10
+
11
+ * Removed the KMS client cache, which could result in a memory leak when
12
+ decrypting certain malformed ciphertexts. This may reduce performance slightly
13
+ in some scenarios.
14
+
3
15
## 1.3.3
4
16
5
17
### Minor Changes
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ You can get the latest release from Maven:
45
45
<dependency >
46
46
<groupId >com.amazonaws</groupId >
47
47
<artifactId >aws-encryption-sdk-java</artifactId >
48
- <version >1.3.3 </version >
48
+ <version >1.3.4 </version >
49
49
</dependency >
50
50
```
51
51
Original file line number Diff line number Diff line change 4
4
5
5
<groupId >com.amazonaws</groupId >
6
6
<artifactId >aws-encryption-sdk-java</artifactId >
7
- <version >1.3.3 </version >
7
+ <version >1.3.5-SNAPSHOT </version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >aws-encryption-sdk-java</name >
Original file line number Diff line number Diff line change @@ -259,12 +259,10 @@ private RegionalClientSupplier clientFactory() {
259
259
AWSKMSClientBuilder builder = templateBuilder_ != null ? cloneClientBuilder (templateBuilder_ )
260
260
: AWSKMSClientBuilder .standard ();
261
261
262
- ConcurrentHashMap <String , AWSKMS > clientCache = new ConcurrentHashMap <>();
263
-
264
- return region -> clientCache .computeIfAbsent (region , region2 -> {
262
+ return region -> {
265
263
// Clone yet again as we're going to change the region field.
266
- return cloneClientBuilder (builder ).withRegion (region2 ).build ();
267
- }) ;
264
+ return cloneClientBuilder (builder ).withRegion (region ).build ();
265
+ };
268
266
}
269
267
}
270
268
You can’t perform that action at this time.
0 commit comments