Skip to content

Commit 2fdf2be

Browse files
Releasing version 3.31.0
Releasing version 3.31.0
2 parents 9cee69b + 1a8ebe9 commit 2fdf2be

File tree

601 files changed

+33688
-2919
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

601 files changed

+33688
-2919
lines changed

ApacheConnector-README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ An example can be found [here](https://github.com/oracle/oci-java-sdk/tree/maste
229229

230230
## More info
231231

232+
### Idle connection monitor thread to evict idle and expired connections
233+
The SDK since version `3.31.0` by default enables an idle connection monitor thread to evict idle and expired connections in the Apache Connector. More details can be found [here](https://hc.apache.org/httpcomponents-client-4.5.x/current/tutorial/html/connmgmt.html) With this change we have also enabled connection reuse which fixes a performance regression caused in version `2.14.1`. Link to the detailed issue can be found [here](https://github.com/oracle/oci-java-sdk/issues/378). To disable the idle connection monitor thread, set the system property `oci.javasdk.apache.idle.connection.monitor.thread.enabled` to `false`. You can also configure the idle connection monitor thread by following this [example](https://github.com/oracle/oci-java-sdk/tree/master/bmc-other-examples/bmc-jersey-examples/src/main/java/ConfigureApacheIdleConnectionMonitorExample.java)
234+
235+
Note : Disabling connection monitor thread by changing the system property disables the connection reuse
236+
232237
### Disabling extra logs related to streams
233238
The SDK emits warnings related to streams when an API that returns streams in its response is called. To disable the logs around streams, you can set
234239
the system property `oci.javasdk.extra.stream.logs.enabled` to `false`. This can be done programmitically or by passing a system property in the java command line.

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6+
## 3.31.0 - 2023-12-12
7+
### Added
8+
- Support for changing compartments of configurations in the PostgreSQL service
9+
- Support for granular policies including compartments, resource types, and recommendations in the Optimizer service
10+
- Support for token exchanges in the Identity Domains service
11+
- Support for Apache HTTP server discovery and monitoring in the Stack Monitoring service
12+
- Support for resource locking in the Data Catalog service
13+
- Support for concurrency throttling in the Data Integration service
14+
- Support for reboot migrations for VMs on dedicated hosts in the Compute service
15+
- Support for connection routing method settings and subnet update in the GoldenGate service
16+
- Support for data discovery of commonly used sensitive types in the Data Safe service
17+
- Support for incremental extract and updates to the workflows in the Data Integration service
18+
19+
### Breaking Changes
20+
- Support for default retries on the operations of the Optimizer service
21+
- Added idle connection monitor thread to evict idle and expired Apache connections. This also restores connection reuse for the Apache connector and fixes a performance issue. For more details, see `ApacheConnector-README`
22+
- Retries disabled when the circuit breaker is in Open state. To enable retries on exceptions caused due to circuit breaker, set `oci.javasdk.default.retry.on.open.circuit.breaker` to `true`. Check `RetryOnOpenCircuitBreakerExample` for more details
23+
- Method `public com.oracle.bmc.psql.model.Configuration getConfiguration()` has been removed from `com.oracle.bmc.psql.responses.ChangeConfigurationCompartmentResponse` in the PostgreSQL service
24+
- Method `public java.lang.String getEtag()` has been removed from `com.oracle.bmc.psql.responses.ChangeConfigurationCompartmentResponse` in the PostgreSQL service
25+
626
## 3.30.0 - 2023-12-04
727
### Added
828
- Support for calling Oracle Cloud Infrastructure services in the eu-dcc-zurich-1 and the sa-bogota-1 region

bmc-accessgovernancecp/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk</artifactId>
7-
<version>3.30.0</version>
7+
<version>3.31.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>oci-java-sdk-accessgovernancecp</artifactId>
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.oracle.oci.sdk</groupId>
1717
<artifactId>oci-java-sdk-common</artifactId>
18-
<version>3.30.0</version>
18+
<version>3.31.0</version>
1919
</dependency>
2020
</dependencies>
2121
</project>

bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.30.0</version>
7+
<version>3.31.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -17,14 +17,14 @@
1717
<dependency>
1818
<groupId>com.oracle.oci.sdk</groupId>
1919
<artifactId>oci-java-sdk-bom</artifactId>
20-
<version>3.30.0</version>
20+
<version>3.31.0</version>
2121
<type>pom</type>
2222
<scope>import</scope>
2323
</dependency>
2424
<dependency>
2525
<groupId>com.oracle.oci.sdk</groupId>
2626
<artifactId>oci-java-sdk-common-httpclient-jersey</artifactId>
27-
<version>3.30.0</version>
27+
<version>3.31.0</version>
2828
<type>pom</type>
2929
<scope>import</scope>
3030
</dependency>

bmc-addons/bmc-apache-configurator-jersey-addon/src/main/java/com/oracle/bmc/http/client/jersey/apacheconfigurator/ApacheConfigurator.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
import java.util.Map;
88
import java.util.concurrent.TimeUnit;
9+
10+
import com.oracle.bmc.http.client.jersey.JerseyClientProperties;
911
import jakarta.annotation.Nonnull;
1012
import javax.net.ssl.SSLContext;
1113

@@ -240,6 +242,24 @@ else if (!apacheConnectorProperties.isConnectionPooling()) {
240242
builder.property(
241243
ApacheClientProperties.CONNECTION_MANAGER_SHARED,
242244
apacheConnectorProperties.isConnectionManagerShared());
245+
246+
if (!apacheConnectorProperties.isIdleConnectionMonitorThreadEnabled()) {
247+
builder.property(
248+
JerseyClientProperties.APACHE_IDLE_CONNECTION_MONITOR_THREAD_ENABLED, false);
249+
}
250+
251+
if (apacheConnectorProperties.getIdleConnectionMonitorThreadWaitTimeInSeconds() > 0) {
252+
builder.property(
253+
JerseyClientProperties.APACHE_IDLE_CONNECTION_MONITOR_THREAD_WAIT_TIME_SECONDS,
254+
apacheConnectorProperties.getIdleConnectionMonitorThreadWaitTimeInSeconds());
255+
}
256+
257+
if (apacheConnectorProperties.getIdleConnectionMonitorThreadIdleTimeoutInSeconds() > 0) {
258+
builder.property(
259+
JerseyClientProperties
260+
.APACHE_IDLE_CONNECTION_MONITOR_THREAD_IDLE_TIMEOUT_SECONDS,
261+
apacheConnectorProperties.getIdleConnectionMonitorThreadIdleTimeoutInSeconds());
262+
}
243263
}
244264

245265
private Registry<ConnectionSocketFactory> getRegistry() {

0 commit comments

Comments
 (0)