Skip to content

Commit

Permalink
Bump up to v1.0.6 (redis-4.0.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
wf9a5m75 committed Mar 30, 2018
1 parent de74205 commit 92f0437
Show file tree
Hide file tree
Showing 633 changed files with 872 additions and 133 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/build
/captures
.externalNativeBuild
.idea/
6 changes: 6 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Redis on Android 1.0 release notes
====================================

================================================================================
Redis on Android 1.0.6 Released Mar/30/2018 11:15 PDT
================================================================================

Upgrade the redis 4.0.9

================================================================================
Redis on Android 1.0.5 Released Feb/21/2018 17:47 PST
================================================================================
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# RedisDB on Android (v1.0.5)
# RedisDB on Android (v1.0.9)

## Redis version

Feb/21/2018 Redis 4.0.8
Mar/30/2018 Redis 4.0.9

## Description

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile project(path: ':redis-android')
implementation project(path: ':redis-android')
}
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</intent-filter>
</activity>
<service
android:process=":redisServer"
android:name=".RedisService" />
</application>

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.1.0'


// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Dec 20 15:05:26 PST 2017
#Fri Mar 30 09:52:06 PDT 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
7 changes: 4 additions & 3 deletions redis-android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:3.1.0'
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 15
buildToolsVersion "27.0.2"
buildToolsVersion '27.0.3'

defaultConfig {
minSdkVersion 15
Expand All @@ -35,7 +36,7 @@ uploadArchives {
repositories {
mavenDeployer {
repository url: "file://${repo.absolutePath}"
pom.version = "1.0.5"
pom.version = "1.0.6"
pom.groupId = "io.wf9a5m75"
pom.artifactId = "redis-android"
}
Expand Down
2 changes: 1 addition & 1 deletion redis-android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Binary file not shown.
Empty file.
1 change: 0 additions & 1 deletion redis-android/src/main/jni/redis-4.0.8/src/version.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,199 @@ HIGH: There is a critical bug that may affect a subset of users. Upgrade!
CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
--------------------------------------------------------------------------------

================================================================================
Redis 4.0.9 Released Mon Mar 26 17:52:32 CEST 2018
================================================================================

Upgrade urgency CRITICAL: Critical upgrade for users using AOF with the
fsync policy set to "always".

Dear Redis users,

Redis version 4.0.9 adds a few interesting new features and fixes a very
critical bug regarding the Append Only File. Let's start with the bad news
(the critical bug), explaining what happens and in what conditions:

Critical AOF bug explained
--------------------------

When AOF is enabled with the fsync policy set to "always", we have a
(rarely used) setup where Redis fsyncs every new write on disk. On this
setup Redis MUST reply to the client with an OK code to the write, only
after the write is already persisted on disk.

Because of a bug, in particular conditions, it sometimes happens (verified
experimentally that the condition can be actually created) that in the
same event loop cycle the command is both processed and the reply sent, before
the beforeSleep() function has the ability to fsync the write on disk.

The redis 4.0.9 release fixes this problem introducing the concept of
write barriers in the Redis event loop (ae.c). If you are using a different
AOF setup, like fsync everysec, you are not affected because such guarantee
is not provided anyway. Similarly if you have fsync set to always but you
do not semantically use the fact that the reply is only sent after the
successful fsync, you may avoid upgrading.

Other bugfixes
--------------

Other things that we fixed in this release include:

* Latency monitor could report wrong latencies under certain conditions.
* AOF rewriting could fail when a backgronud rewrite is triggered and
at the same time the AOF is switched on/off.
* Redis Cluster crash-recovery safety improved.
* Other smaller fixes (check commnits).

New features
------------

* Redis Cluster has now the ability to configure certain slaves so that
they'll never attempt a failover.
* Keyspace notifications API in modules.
* RM_Call() is now faster by reusing the same client.
* Tracking of the percentage of keys already logically expired but yet
not evicted.
* Other smaller improvements (check commits)

This is the list of commits composing this release:

zhaozhao.zz in commit 5b722bd7:
fix missed call on freeaddrinfo
1 file changed, 1 insertion(+), 1 deletion(-)

zhaozhao.zz in commit 2551b0f6:
anet: avoid double close
1 file changed, 1 insertion(+), 1 deletion(-)

antirez in commit 8d92885b:
Cluster: add test for the nofailover flag.
2 files changed, 71 insertions(+)

antirez in commit 70597a30:
Cluster: ability to prevent slaves from failing over their masters.
6 files changed, 70 insertions(+), 2 deletions(-)

antirez in commit 16cad10a:
redis-cli: fix missed unit in array. Change define name.
1 file changed, 5 insertions(+), 5 deletions(-)

charsyam in commit 640fa434:
fix-out-of-index-range-for-redis-cli-findbigkey
1 file changed, 6 insertions(+), 4 deletions(-)

antirez in commit 83390f55:
expireIfNeeded() needed a top comment documenting the behavior.
1 file changed, 19 insertions(+)

antirez in commit 888039ca:
expireIfNeeded() comment: claim -> pretend.
1 file changed, 1 insertion(+), 1 deletion(-)

antirez in commit e09c8c10:
Actually use ae_flags to add AE_BARRIER if needed.
1 file changed, 1 insertion(+), 1 deletion(-)

charsyam in commit fb7560bc:
refactoring-make-condition-clear-for-rdb
1 file changed, 2 insertions(+), 2 deletions(-)

antirez in commit 1e2f0d69:
ae.c: insetad of not firing, on AE_BARRIER invert the sequence.
1 file changed, 38 insertions(+), 22 deletions(-)

antirez in commit b2e4aad9:
AOF: fix a bug that may prevent proper fsyncing when fsync=always.
1 file changed, 18 insertions(+), 6 deletions(-)

antirez in commit 93bad8ae:
Cluster: improve crash-recovery safety after failover auth vote.
1 file changed, 3 insertions(+), 2 deletions(-)

antirez in commit e32752e8:
ae.c: introduce the concept of read->write barrier.
2 files changed, 29 insertions(+), 6 deletions(-)

antirez in commit 262f4039:
Fix ziplist prevlen encoding description. See #4705.
1 file changed, 6 insertions(+), 6 deletions(-)

antirez in commit 83923afa:
Track number of logically expired keys still in memory.
3 files changed, 28 insertions(+), 1 deletion(-)

antirez in commit 256ddbf6:
Remove non semantical spaces from module.c.
1 file changed, 36 insertions(+), 41 deletions(-)

antirez in commit 280c3e39:
Fix typo in notifyKeyspaceEvent() comment.
1 file changed, 1 insertion(+), 1 deletion(-)

Dvir Volk in commit 7c4623b0:
Add doc comment about notification flags
1 file changed, 1 insertion(+)

Dvir Volk in commit f4e7502e:
Fix indentation and comment style in testmodule
1 file changed, 92 insertions(+), 98 deletions(-)

Dvir Volk in commit 3c8456c6:
Use one static client for all keyspace notification callbacks
1 file changed, 11 insertions(+), 7 deletions(-)

Dvir Volk in commit aaaff8bd:
Remove the NOTIFY_MODULE flag and simplify the module notification flow if there aren't subscribers
3 files changed, 5 insertions(+), 9 deletions(-)

Dvir Volk in commit 0be51b8f:
Document flags for notifications
1 file changed, 17 insertions(+), 1 deletion(-)

Dvir Volk in commit 3b95c89c:
removed some trailing whitespaces
1 file changed, 2 deletions(-)

Dvir Volk in commit 84c6f1e3:
removed hellonotify.c
3 files changed, 1 insertion(+), 87 deletions(-)

Dvir Volk in commit 53b85e53:
fixed test
1 file changed, 7 insertions(+), 1 deletion(-)

Dvir Volk in commit b43f66c9:
finished implementation of notifications. Tests unfinished
7 files changed, 339 insertions(+), 3 deletions(-)

antirez in commit eddf5deb:
More verbose logging when slave sends errors to master.
1 file changed, 6 insertions(+), 2 deletions(-)

oranagra in commit c09cc0a9:
when a slave experiances an error on commands that come from master, print to the log
1 file changed, 2 insertions(+)

charsyam in commit 5c374f94:
getting rid of duplicated code
1 file changed, 2 insertions(+), 2 deletions(-)

Guy Benoish in commit a64f36e5:
enlarged buffer given to ld2string
3 files changed, 7 insertions(+), 2 deletions(-)

antirez in commit f1705801:
Make it explicit with a comment why we kill the old AOF rewrite.
1 file changed, 3 insertions(+)

Guy Benoish in commit 0c030dea:
rewriteAppendOnlyFileBackground() failure fix
1 file changed, 31 insertions(+), 21 deletions(-)

Oran Agra in commit 58073974:
fix to latency monitor reporting wrong max latency
1 file changed, 1 insertion(+)

================================================================================
Redis 4.0.8 Released Fri Feb 2 11:17:40 CET 2018
================================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RELEASE_HDR := $(shell sh -c '$(SRC)/mkreleasehdr.sh')
LOCAL_MODULE := redis

REDIS_ANDROID := redis-android
REDIS_DIR := redis-4.0.8
REDIS_DIR := redis-4.0.9

LOCAL_LDLIBS := -llog
LOCAL_CFLAGS := -O3 -D__ANDROID__ -D__REDIS_ANDROID__
Expand Down Expand Up @@ -51,7 +51,7 @@ LOCAL_STATIC_LIBRARIES += lua
LOCAL_STATIC_LIBRARIES += linenoise


ifeq ($(REDIS_DIR),redis-4.0.8)
ifeq ($(REDIS_DIR),redis-4.0.9)

LOCAL_SRC_FILES += \
$(SRC)/adlist.c $(SRC)/ae.c \
Expand Down Expand Up @@ -88,8 +88,8 @@ include $(CLEAR_VARS)
LOCAL_PATH := $(ORG_LOCAL_PATH)
LOCAL_MODULE := redis-check-rdb

REDIS_ANDROID_DIR := redis-4.0.8
REDIS_DIR := redis-4.0.8
REDIS_ANDROID_DIR := redis-4.0.9
REDIS_DIR := redis-4.0.9

# Includes lua library
LOCAL_STATIC_LIBRARIES += lua
Expand All @@ -116,7 +116,7 @@ LOCAL_CFLAGS += -funwind-tables

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../

ifeq ($(REDIS_DIR),redis-4.0.8)
ifeq ($(REDIS_DIR),redis-4.0.9)

LOCAL_SRC_FILES += \
$(SRC)/adlist.c $(SRC)/ae.c \
Expand Down Expand Up @@ -152,8 +152,8 @@ include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := redis-check-aof

REDIS_ANDROID_DIR := redis-4.0.8
REDIS_DIR := redis-4.0.8
REDIS_ANDROID_DIR := redis-4.0.9
REDIS_DIR := redis-4.0.9

# Includes lua library
LOCAL_STATIC_LIBRARIES += lua
Expand All @@ -180,7 +180,7 @@ LOCAL_CFLAGS += -funwind-tables

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../

ifeq ($(REDIS_DIR),redis-4.0.8)
ifeq ($(REDIS_DIR),redis-4.0.9)


LOCAL_SRC_FILES += \
Expand Down Expand Up @@ -217,8 +217,8 @@ include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := redis-cli

REDIS_ANDROID_DIR := redis-4.0.8
REDIS_DIR := redis-4.0.8
REDIS_ANDROID_DIR := redis-4.0.9
REDIS_DIR := redis-4.0.9


# Includes linenoise library
Expand Down
File renamed without changes.
Loading

0 comments on commit 92f0437

Please sign in to comment.