Skip to content

Commit 54ca69f

Browse files
nicktindallomricohenn
authored andcommitted
Revert "Upgrade to latest GCS SDK (elastic#124062)" (elastic#125748)
This reverts commit 073ca0e.
1 parent cefb68a commit 54ca69f

20 files changed

+106
-301
lines changed

docs/changelog/124062.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

gradle/verification-metadata.xml

Lines changed: 15 additions & 120 deletions
Large diffs are not rendered by default.

modules/repository-gcs/build.gradle

Lines changed: 47 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,40 @@ apply plugin: 'elasticsearch.internal-cluster-test'
1818

1919
esplugin {
2020
description = 'The GCS repository plugin adds Google Cloud Storage support for repositories.'
21-
classname = 'org.elasticsearch.repositories.gcs.GoogleCloudStoragePlugin'
21+
classname ='org.elasticsearch.repositories.gcs.GoogleCloudStoragePlugin'
2222
}
2323

2424
dependencies {
25-
// dependencies consistent with 'com.google.cloud:google-cloud-storage-bom:2.50.0'
26-
implementation 'com.google.cloud:google-cloud-storage:2.50.0'
27-
implementation 'com.google.cloud:google-cloud-core:2.53.1'
28-
implementation 'com.google.cloud:google-cloud-core-http:2.53.1'
29-
runtimeOnly 'com.google.guava:guava:33.4.0-jre'
30-
runtimeOnly 'com.google.guava:failureaccess:1.0.2'
31-
runtimeOnly "org.slf4j:slf4j-api:${versions.slf4j}" // 2.0.16 in bom
32-
runtimeOnly "commons-codec:commons-codec:${versions.commonscodec}" // 1.18.0 in bom
33-
implementation 'com.google.api:api-common:2.46.1'
34-
implementation 'com.google.api:gax:2.63.1'
35-
implementation 'org.threeten:threetenbp:1.7.0'
36-
runtimeOnly "com.google.protobuf:protobuf-java-util:${versions.protobuf}" // 3.25.5 in bom
37-
runtimeOnly "com.google.protobuf:protobuf-java:${versions.protobuf}"
38-
runtimeOnly 'com.google.code.gson:gson:2.12.1'
39-
runtimeOnly 'com.google.api.grpc:proto-google-common-protos:2.54.1'
40-
runtimeOnly 'com.google.api.grpc:proto-google-iam-v1:1.49.1'
41-
implementation 'com.google.auth:google-auth-library-credentials:1.33.1'
42-
implementation 'com.google.auth:google-auth-library-oauth2-http:1.33.1'
43-
runtimeOnly "com.google.oauth-client:google-oauth-client:${versions.google_oauth_client}" // 1.37.0 in bom
44-
implementation 'com.google.api-client:google-api-client:2.7.2'
45-
implementation 'com.google.http-client:google-http-client:1.46.3'
46-
runtimeOnly 'com.google.http-client:google-http-client-gson:1.46.3'
47-
runtimeOnly 'com.google.http-client:google-http-client-appengine:1.46.3'
48-
runtimeOnly 'com.google.http-client:google-http-client-jackson2:1.46.3'
49-
runtimeOnly "com.fasterxml.jackson.core:jackson-core:${versions.jackson}" // 2.18.2 in bom
50-
runtimeOnly 'com.google.api:gax-httpjson:2.63.1'
51-
runtimeOnly 'io.opencensus:opencensus-api:0.31.1'
52-
runtimeOnly 'io.opencensus:opencensus-contrib-http-util:0.31.1'
53-
implementation 'com.google.apis:google-api-services-storage:v1-rev20250224-2.0.0'
54-
implementation 'org.checkerframework:checker-qual:3.49.0'
55-
runtimeOnly 'io.opentelemetry:opentelemetry-api:1.47.0'
56-
runtimeOnly 'io.opentelemetry:opentelemetry-context:1.47.0'
57-
runtimeOnly 'com.google.api.grpc:proto-google-cloud-storage-v2:2.50.0'
58-
runtimeOnly 'io.grpc:grpc-api:1.70.0'
25+
api 'com.google.cloud:google-cloud-storage:2.13.1'
26+
api 'com.google.cloud:google-cloud-core:2.8.28'
27+
api 'com.google.cloud:google-cloud-core-http:2.8.28'
28+
runtimeOnly 'com.google.guava:guava:32.0.1-jre'
29+
runtimeOnly 'com.google.guava:failureaccess:1.0.1'
30+
api "commons-logging:commons-logging:${versions.commonslogging}"
31+
api "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}"
32+
api "commons-codec:commons-codec:${versions.commonscodec}"
33+
api 'com.google.api:api-common:2.3.1'
34+
api 'com.google.api:gax:2.20.1'
35+
api 'org.threeten:threetenbp:1.6.5'
36+
api "com.google.protobuf:protobuf-java-util:${versions.protobuf}"
37+
api "com.google.protobuf:protobuf-java:${versions.protobuf}"
38+
api 'com.google.code.gson:gson:2.10'
39+
api 'com.google.api.grpc:proto-google-common-protos:2.9.6'
40+
api 'com.google.api.grpc:proto-google-iam-v1:1.6.2'
41+
api 'com.google.auth:google-auth-library-credentials:1.11.0'
42+
api 'com.google.auth:google-auth-library-oauth2-http:1.11.0'
43+
api "com.google.oauth-client:google-oauth-client:${versions.google_oauth_client}"
44+
api 'com.google.api-client:google-api-client:2.1.1'
45+
api 'com.google.http-client:google-http-client:1.42.3'
46+
api 'com.google.http-client:google-http-client-gson:1.42.3'
47+
api 'com.google.http-client:google-http-client-appengine:1.42.3'
48+
api 'com.google.http-client:google-http-client-jackson2:1.42.3'
49+
api "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
50+
api 'com.google.api:gax-httpjson:0.105.1'
51+
api 'io.grpc:grpc-context:1.49.2'
52+
api 'io.opencensus:opencensus-api:0.31.1'
53+
api 'io.opencensus:opencensus-contrib-http-util:0.31.1'
54+
api 'com.google.apis:google-api-services-storage:v1-rev20220705-2.0.0'
5955

6056
testImplementation "org.apache.httpcomponents:httpclient:${versions.httpclient}"
6157
testImplementation "org.apache.httpcomponents:httpcore:${versions.httpcore}"
@@ -66,7 +62,7 @@ dependencies {
6662

6763
restResources {
6864
restApi {
69-
include '_common', 'cluster', 'nodes', 'snapshot', 'indices', 'index', 'bulk', 'count'
65+
include '_common', 'cluster', 'nodes', 'snapshot','indices', 'index', 'bulk', 'count'
7066
}
7167
}
7268

@@ -127,6 +123,11 @@ tasks.named("thirdPartyAudit").configure {
127123
'com.google.appengine.api.urlfetch.HTTPResponse',
128124
'com.google.appengine.api.urlfetch.URLFetchService',
129125
'com.google.appengine.api.urlfetch.URLFetchServiceFactory',
126+
// commons-logging optional dependencies
127+
'org.apache.avalon.framework.logger.Logger',
128+
'org.apache.log.Hierarchy',
129+
'org.apache.log.Logger',
130+
'javax.jms.Message',
130131

131132
// optional apache http client dependencies
132133
'org.apache.http.ConnectionReuseStrategy',
@@ -170,59 +171,19 @@ tasks.named("thirdPartyAudit").configure {
170171
'org.apache.http.protocol.HttpProcessor',
171172
'org.apache.http.protocol.HttpRequestExecutor',
172173

173-
// grpc/proto stuff
174-
'com.google.api.gax.grpc.GrpcCallContext',
175-
'com.google.api.gax.grpc.GrpcCallSettings',
176-
'com.google.api.gax.grpc.GrpcCallSettings$Builder',
177-
'com.google.api.gax.grpc.GrpcInterceptorProvider',
178-
'com.google.api.gax.grpc.GrpcStatusCode',
179-
'com.google.api.gax.grpc.GrpcStubCallableFactory',
180-
'com.google.api.gax.grpc.InstantiatingGrpcChannelProvider',
181-
'com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$Builder',
182-
'com.google.cloud.grpc.GrpcTransportOptions',
183-
'com.google.cloud.grpc.GrpcTransportOptions$Builder',
184-
'com.google.cloud.opentelemetry.metric.GoogleCloudMetricExporter',
185-
'com.google.cloud.opentelemetry.metric.MetricConfiguration',
186-
'com.google.cloud.opentelemetry.metric.MetricConfiguration$Builder',
187-
'com.google.storage.v2.StorageClient',
188-
'com.google.storage.v2.StorageClient$ListBucketsPagedResponse',
189-
'com.google.storage.v2.StorageSettings',
190-
'com.google.storage.v2.StorageSettings$Builder',
191-
'com.google.storage.v2.stub.GrpcStorageStub',
192-
'com.google.storage.v2.stub.StorageStubSettings',
193-
// opentelemetry implementation stuff
194-
'io.grpc.opentelemetry.GrpcOpenTelemetry',
195-
'io.grpc.opentelemetry.GrpcOpenTelemetry$Builder',
196-
'io.grpc.protobuf.ProtoUtils',
197-
'io.opentelemetry.contrib.gcp.resource.GCPResourceProvider',
198-
'io.opentelemetry.sdk.OpenTelemetrySdk',
199-
'io.opentelemetry.sdk.OpenTelemetrySdkBuilder',
200-
'io.opentelemetry.sdk.common.CompletableResultCode',
201-
'io.opentelemetry.sdk.common.export.MemoryMode',
202-
'io.opentelemetry.sdk.metrics.Aggregation',
203-
'io.opentelemetry.sdk.metrics.InstrumentSelector',
204-
'io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder',
205-
'io.opentelemetry.sdk.metrics.InstrumentType',
206-
'io.opentelemetry.sdk.metrics.SdkMeterProvider',
207-
'io.opentelemetry.sdk.metrics.SdkMeterProviderBuilder',
208-
'io.opentelemetry.sdk.metrics.View',
209-
'io.opentelemetry.sdk.metrics.ViewBuilder',
210-
'io.opentelemetry.sdk.metrics.data.AggregationTemporality',
211-
'io.opentelemetry.sdk.metrics.export.DefaultAggregationSelector',
212-
'io.opentelemetry.sdk.metrics.export.MetricExporter',
213-
'io.opentelemetry.sdk.metrics.export.PeriodicMetricReader',
214-
'io.opentelemetry.sdk.metrics.export.PeriodicMetricReaderBuilder',
215-
'io.opentelemetry.sdk.resources.Resource',
174+
// commons-logging provided dependencies
175+
'javax.servlet.ServletContextEvent',
176+
'javax.servlet.ServletContextListener'
216177
)
217178

218179

219-
if (buildParams.graalVmRuntime == false) {
180+
if(buildParams.graalVmRuntime == false) {
220181
ignoreMissingClasses(
221-
'org.graalvm.nativeimage.hosted.Feature',
222-
'org.graalvm.nativeimage.hosted.Feature$BeforeAnalysisAccess',
223-
'org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess',
224-
'org.graalvm.nativeimage.hosted.Feature$FeatureAccess',
225-
'org.graalvm.nativeimage.hosted.RuntimeReflection'
182+
'org.graalvm.nativeimage.hosted.Feature',
183+
'org.graalvm.nativeimage.hosted.Feature$BeforeAnalysisAccess',
184+
'org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess',
185+
'org.graalvm.nativeimage.hosted.Feature$FeatureAccess',
186+
'org.graalvm.nativeimage.hosted.RuntimeReflection'
226187
)
227188
}
228189
}
@@ -252,7 +213,7 @@ Map<String, Object> expansions = [
252213

253214
tasks.named("processYamlRestTestResources").configure {
254215
inputs.properties(expansions)
255-
filter("tokens": expansions, ReplaceTokens.class)
216+
filter("tokens" : expansions, ReplaceTokens.class)
256217
}
257218

258219
tasks.named("internalClusterTest").configure {

modules/repository-gcs/licenses/checker-qual-LICENSE.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Apache Commons CLI
2+
Copyright 2001-2009 The Apache Software Foundation
3+
4+
This product includes software developed by
5+
The Apache Software Foundation (http://www.apache.org/).

modules/repository-gcs/licenses/grpc-api-NOTICE.txt

Whitespace-only changes.

modules/repository-gcs/licenses/opentelemetry-context-LICENSE.txt renamed to modules/repository-gcs/licenses/log4j-LICENSE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 1999-2005 The Apache Software Foundation
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.
@@ -199,4 +200,3 @@
199200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200201
See the License for the specific language governing permissions and
201202
limitations under the License.
202-

0 commit comments

Comments
 (0)