Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUCENESOLR-1983: CP-79: Incremental backup and restore #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions gradle/testing/randomization/policies/solr-tests.policy
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ grant {

// used by solr to create sandboxes (e.g. script execution)
permission java.security.SecurityPermission "createAccessControlContext";

// used by gcs-repository
permission java.net.SocketPermission "metadata.google.internal:80", "connect,resolve";
permission java.net.SocketPermission "www.googleapis.com:443", "connect,resolve";
permission java.net.SocketPermission "oauth2.googleapis.com:443", "connect,resolve";
// used on jenkins for loading credentials
permission java.io.FilePermission "${user.home}${/}.config${/}gcloud${/}-", "read";
};

// additional permissions based on system properties set by /bin/solr
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ include "solr:contrib:langid"
include "solr:contrib:jaegertracer-configurator"
include "solr:contrib:prometheus-exporter"
include "solr:contrib:ltr"
include "solr:contrib:gcs-repository"
include "solr:webapp"
include "solr:test-framework"
include "solr:solr-ref-guide"
Expand Down
4 changes: 4 additions & 0 deletions solr/contrib/gcs-repository/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Apache Solr - GCS Respository
=============================

The GCS repository is a backup repository implementation that uses Google Cloud Storage (GCS).
54 changes: 54 additions & 0 deletions solr/contrib/gcs-repository/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


apply plugin: 'java-library'

description = 'GCS Backup Repository'

dependencies {
api project(':solr:core')

implementation ('com.google.api:api-common') { transitive = false }
implementation ('com.google.api:gax') { transitive = false }
implementation ('com.google.api:gax-httpjson') { transitive = false }
implementation ('com.google.cloud:google-cloud-core') { transitive = false }
implementation ('com.google.cloud:google-cloud-core-http') { transitive = false }
implementation ('com.google.cloud:google-cloud-storage') { transitive = false }
implementation ('com.google.auth:google-auth-library-oauth2-http') { transitive = false }
implementation ('com.google.auth:google-auth-library-credentials') { transitive = false }
implementation ('org.threeten:threetenbp') { transitive = false }

runtimeOnly ('com.google.apis:google-api-services-storage') { transitive = false }
runtimeOnly ('com.google.api-client:google-api-client') { transitive = false }
runtimeOnly ('com.google.api.grpc:proto-google-common-protos') { transitive = false }
runtimeOnly ('com.google.api.grpc:proto-google-iam-v1') { transitive = false }
runtimeOnly ('com.google.code.findbugs:jsr305') { transitive = false }
runtimeOnly ('com.google.code.gson:gson') { transitive = false }
runtimeOnly ('com.google.http-client:google-http-client') { transitive = false }
runtimeOnly ('com.google.http-client:google-http-client-appengine') { transitive = false }
runtimeOnly ('com.google.http-client:google-http-client-jackson2') { transitive = false }
runtimeOnly ('com.google.j2objc:j2objc-annotations') { transitive = false }
runtimeOnly ('com.google.oauth-client:google-oauth-client') { transitive = false }
runtimeOnly ('com.google.protobuf:protobuf-java') { transitive = false }
runtimeOnly ('com.google.protobuf:protobuf-java-util') { transitive = false }
runtimeOnly ('io.grpc:grpc-context') { transitive = false }
runtimeOnly ('io.opencensus:opencensus-api') { transitive = false }
runtimeOnly ('io.opencensus:opencensus-contrib-http-util') { transitive = false }

testImplementation project(':solr:test-framework')
}
Loading