Skip to content

Commit

Permalink
OAK-9372: bump elastic version to 7.10.2 and align elastiknn version
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1887167 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fabriziofortino committed Mar 4, 2021
1 parent 1f072b8 commit 14fccb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion oak-search-elastic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<description>Oak Elasticsearch integration subproject</description>

<properties>
<elasticsearch.version>7.10.1</elasticsearch.version>
<elasticsearch.version>7.10.2</elasticsearch.version>
<lucene.version>8.7.0</lucene.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class ElasticConnectionRule extends ExternalResource {
private ElasticConnection elasticConnection;
private final String elasticConnectionString;
private static final String INDEX_PREFIX = "ElasticTest_";
private static final String PLUGIN_DIGEST = "c4451aa794641dd3c9b0fdc64b553b71ca2f9a44689a7784b51669b5e557046d";
private static final String PLUGIN_DIGEST = "060117b4150c87274d9cff0925ec16e714f28a40906a53a2cd2a23322bbb3189";
private static boolean useDocker = false;

public ElasticConnectionRule(String elasticConnectionString) {
Expand All @@ -81,16 +81,16 @@ protected void before() {
public Statement apply(Statement base, Description description) {
Statement s = super.apply(base, description);
// see if docker is to be used or not... initialize docker rule only if that's the case.
final String pluginVersion = "7.10.1.0";
final String pluginVersion = "7.10.2.3";
final String pluginFileName = "elastiknn-" + pluginVersion + ".zip";
final String localPluginPath = "target/" + pluginFileName;
downloadSimilaritySearchPluginIfNotExists(localPluginPath, pluginVersion);
if (elasticConnectionString == null || getElasticConnectionFromString() == null) {
checkIfDockerClientAvailable();
elastic = new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:" + Version.CURRENT)
.withCopyFileToContainer(MountableFile.forHostPath(localPluginPath), "/tmp/plugins/" + pluginFileName)
.withCopyFileToContainer(MountableFile.forHostPath(localPluginPath), "/tmp/plugins/" + pluginFileName)
.withCopyFileToContainer(MountableFile.forClasspathResource("elasticstartscript.sh"), "/tmp/elasticstartscript.sh")
.withCommand("bash /tmp/elasticstartscript.sh");
.withCommand("bash /tmp/elasticstartscript.sh");
s = elastic.apply(s, description);
setUseDocker(true);
}
Expand Down

0 comments on commit 14fccb3

Please sign in to comment.