Skip to content

Commit 378a7bb

Browse files
committed
Support ES 7.6.1
1 parent 00da48a commit 378a7bb

File tree

6 files changed

+25
-11
lines changed

6 files changed

+25
-11
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
buildDir = 'gradle-build'
88

99
ext {
10-
opendistroVersion = '1.5.0'
10+
opendistroVersion = '1.6.0'
1111
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
1212
}
1313

@@ -39,7 +39,7 @@ ospackage {
3939
fileMode 0644
4040
dirMode 0755
4141

42-
requires('elasticsearch-oss', "7.5.2", EQUAL)
42+
requires('elasticsearch-oss', "7.6.1", EQUAL)
4343
packager = 'Amazon'
4444
vendor = 'Amazon'
4545
os = 'LINUX'

opendistro-elasticsearch-security.release-notes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## 2020-03-05 Version 1.5.0.1 (Current)
1+
## 2020-03-12 Version 1.6.0.0 (Current)
2+
3+
- Support for Elasticsearch 7.6.1
4+
5+
## 2020-03-05 Version 1.5.0.1
26

37
- Adding capability to hot reload ssl certificates
48
- Added changes for SuperAdmin to update/add/delete reserved configs

plugin-descriptor.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
description=Provide access control related features for Elasticsearch 7
44
#
55
# 'version': plugin's version
6-
version=1.5.0.1
6+
version=1.6.0.0
77
#
88
# 'name': the plugin name
99
name=opendistro_security
@@ -22,4 +22,4 @@ java.version=1.8
2222
# elasticsearch release. This version is checked when the plugin
2323
# is loaded so Elasticsearch will refuse to start in the presence of
2424
# plugins with the incorrect elasticsearch.version.
25-
elasticsearch.version=7.5.2
25+
elasticsearch.version=7.6.1

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<groupId>com.amazon.opendistroforelasticsearch</groupId>
3535
<artifactId>opendistro_security</artifactId>
3636
<packaging>jar</packaging>
37-
<version>1.5.0.1</version>
37+
<version>1.6.0.0</version>
3838
<name>Open Distro Security for Elasticsearch</name>
3939
<description>Open Distro For Elasticsearch Security</description>
4040
<url>https://github.com/opendistro-for-elasticsearch/security</url>
@@ -68,7 +68,7 @@
6868
<maven.compiler.target>1.8</maven.compiler.target>
6969
<maven.compiler.release>8</maven.compiler.release>
7070

71-
<elasticsearch.version>7.5.2</elasticsearch.version>
71+
<elasticsearch.version>7.6.1</elasticsearch.version>
7272

7373
<!-- deps -->
7474
<netty-native.version>2.0.25.Final</netty-native.version>
@@ -98,7 +98,7 @@
9898
<url>https://github.com/opendistro-for-elasticsearch/security</url>
9999
<connection>scm:git:[email protected]:opendistro-for-elasticsearch/security.git</connection>
100100
<developerConnection>scm:git:[email protected]:opendistro-for-elasticsearch/security.git</developerConnection>
101-
<tag>1.5.0.1</tag>
101+
<tag>1.6.0.0</tag>
102102
</scm>
103103

104104
<issueManagement>

src/main/java/com/amazon/opendistroforelasticsearch/security/support/SnapshotRestoreHelper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.apache.logging.log4j.Logger;
4040
import org.elasticsearch.SpecialPermission;
4141
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest;
42+
import org.elasticsearch.action.support.PlainActionFuture;
4243
import org.elasticsearch.repositories.RepositoriesService;
4344
import org.elasticsearch.repositories.Repository;
4445
import org.elasticsearch.snapshots.SnapshotId;
@@ -72,8 +73,8 @@ public static SnapshotInfo getSnapshotInfo(RestoreSnapshotRequest restoreRequest
7273
SnapshotInfo snapshotInfo = null;
7374

7475
try {
75-
setCurrentThreadName(ThreadPool.Names.GENERIC);
76-
for (final SnapshotId snapshotId : repository.getRepositoryData().getSnapshotIds()) {
76+
setCurrentThreadName(ThreadPool.Names.GENERIC);
77+
for (SnapshotId snapshotId : PlainActionFuture.get(repository::getRepositoryData).getSnapshotIds()) {
7778
if (snapshotId.getName().equals(restoreRequest.snapshot())) {
7879

7980
if(log.isDebugEnabled()) {

src/test/java/com/amazon/opendistroforelasticsearch/security/http/proxy/HTTPExtendedProxyAuthenticatorTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,16 @@ public HttpResponse createResponse(RestStatus status, BytesReference content) {
197197
// TODO Auto-generated method stub
198198
return null;
199199
}
200-
200+
201+
@Override
202+
public void release() {
203+
204+
}
205+
206+
@Override
207+
public HttpRequest releaseAndCopy() {
208+
return null;
209+
}
201210
}
202211

203212
static class HttpChannelImpl implements HttpChannel {

0 commit comments

Comments
 (0)