Skip to content

Commit

Permalink
upgrade redis default to 6.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jetoile committed Oct 20, 2020
1 parent a8dbdc7 commit 81c3fd3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hadoop-unit-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<artifactId>hadoop-unit-redis</artifactId>

<properties>
<jedis.version>2.9.0</jedis.version>
<jedis.version>3.3.0</jedis.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ neo4j.temp.dir=/embedded_neo4j
# Redis
redis.port=6379
redis.download.url=http://download.redis.io/releases/
redis.version=4.0.0
redis.version=6.0.8
redis.cleanup.installation=false
redis.temp.dir=/redis
redis.type=SERVER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void setup() throws BootstrapException {
public void redis_installation_should_succeed() throws IOException, InterruptedException {
String version = configuration.getString(RedisConfig.REDIS_VERSION_KEY);
String downloadUrl = configuration.getString(RedisConfig.REDIS_DOWNLOAD_URL_KEY);
String tmpDir = configuration.getString(RedisConfig.REDIS_TMP_DIR_KEY);
String tmpDir = getTmpDirPath(configuration, RedisConfig.REDIS_TMP_DIR_KEY);

EmbeddedRedisInstaller.builder()
.version(version)
Expand All @@ -45,4 +45,7 @@ public void redis_installation_should_succeed() throws IOException, InterruptedE
assertThat(new File(System.getProperty("user.home") + "/.redis/redis-" + version + "/src/redis-server")).exists();
}

private String getTmpDirPath(Configuration configuration, String componentTmpPathKey) {
return configuration.getString(HadoopUnitConfig.TMP_DIR_PATH_KEY, "/tmp") + configuration.getString(componentTmpPathKey);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ neo4j.temp.dir=/embedded_neo4j
# Redis
redis.port=6379
redis.download.url=http://download.redis.io/releases/
redis.version=5.0.4
redis.version=6.0.8
redis.cleanup.installation=false
redis.temp.dir=/redis
redis.type=SERVER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ alluxio.webapp.directory=conf/alluxio/webapp
# Redis
redis.port=6379
redis.download.url=http://download.redis.io/releases/
redis.version=5.0.4
redis.version=6.0.8
redis.cleanup.installation=false
redis.temp.dir=/redis
redis.type=SERVER
Expand Down
2 changes: 1 addition & 1 deletion sample/redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<artifactId>redis</artifactId>

<properties>
<jedis.version>2.9.0</jedis.version>
<jedis.version>3.3.0</jedis.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ alluxio.webapp.directory=conf/alluxio/webapp
# Redis
redis.port=6379
redis.download.url=http://download.redis.io/releases/
redis.version=4.0.0
redis.version=6.0.8
redis.cleanup.installation=false
redis.temp.dir=/redis
redis.type=SERVER
Expand Down

0 comments on commit 81c3fd3

Please sign in to comment.