Bug 24042 - Update Candidate: Redis 4.0.12
Summary: Update Candidate: Redis 4.0.12
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2018-12-22 09:58 CET by Stig-Ørjan Smelror
Modified: 2018-12-27 00:09 CET (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Very basic tutorial script for the redis server (410 bytes, text/plain)
2018-12-22 19:54 CET, Len Lawrence
Details

Description Stig-Ørjan Smelror 2018-12-22 09:58:06 CET
Advisory
========

This backports Redis 5 fixes into Redis 4. Note that there are important fixes to the AOF implementation so Redis 4.0.12 should be considered as a worthwhile upgrade in production environments where AOF is used and there is the
idea of sticking with Redis 4 for some time.

References
==========
https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES

Files
=====

Uploaded to core/updates_testing

redis-4.0.12-1.mga6
redis-debuginfo-4.0.12-1.mga6

from redis-4.0.12-1.mga6.src.rpm
Stig-Ørjan Smelror 2018-12-22 10:13:34 CET

Assignee: bugsquad => qa-bugs

Comment 1 Len Lawrence 2018-12-22 19:51:35 CET
Mageia 6, x86_64

Having tested this before, used former tests to exercize redis before updating.
redis is an in-memory data store which supports several common data formats, which data are handled via a server attached to port 6379.

Updated from redis-4.0.10-1 to redis-4.0.12-1

See https://bugs.mageia.org/show_bug.cgi?id=19158 for earlier interactive tutorial session.

The command-line tool redis-cli can be used to run scripts.

$ su
# systemctl start redis.service
# exit
$ systemctl status redis.service
● redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset
  Drop-In: /usr/lib/systemd/system/redis.service.d
           └─limit.conf
   Active: active (running) since Sat 2018-12-22 17:33:54 GMT; 15s ago
 Main PID: 20168 (redis-server)
   CGroup: /system.slice/redis.service
           └─20168 /usr/bin/redis-server 127.0.0.1:6379                

$ redis-cli < tutorial
OK
"pluto"
OK
(integer) 8
(integer) 9
"9"
(integer) 1
(integer) 1
OK
(integer) 1
(integer) 40
(integer) 40
(integer) 40
OK
(integer) 4
(integer) 5
(integer) 6
1) "David"
2) "David"
3) "Suzy"
4) "Zack"
5) "Suzy"
6) "Zack"
1) "David"
2) "David"
1) "David"
2) "Suzy"

Note that errors in sysntax are trapped at the command-line while the command is being typed.  The input text will be tagged on the same line with a greyed out "stop".  Also, cues are provided while typing certain commands but it is not always clear what is required.

This demonstrates persistence:
$ redis-cli
127.0.0.1:6379> lrange friends 1-2<stop>
(error) ERR wrong number of arguments for 'lrange' command
127.0.0.1:6379> lrange friends 1 2
1) "David"
2) "Suzy"
127.0.0.1:6379> GET server:name
"pluto"
127.0.0.1:6379> set resource:lock "Demo 2"
OK
127.0.0.1:6379> expire "Demo 2" 10
(integer) 0

<later>

127.0.0.1:6379> ttl resource:lock
(integer) -1
127.0.0.1:6379> ttl resource:lock
(integer) -1

Lists are stacks or LIFO buffers:

127.0.0.1:6379> lpush friends "Lucy"
(integer) 7
127.0.0.1:6379> lrange friends 7 7
(empty list or set)
127.0.0.1:6379> lrange friends 0 0
1) "Lucy"
127.0.0.1:6379> lrange friends 0 -1
1) "Lucy"
2) "David"
3) "David"
4) "Suzy"
5) "Zack"
6) "Suzy"
7) "Zack"
127.0.0.1:6379> exit

This is just tinkering with the basics but should be enough.

Whiteboard: (none) => MGA6-64-OK
CC: (none) => tarazed25

Comment 2 Len Lawrence 2018-12-22 19:54:42 CET
Created attachment 10590 [details]
Very basic tutorial script for the redis server

$ redis-cli < tutorial
Based on the interactive tutorial at try.redis.io
Comment 3 Lewis Smith 2018-12-26 22:14:59 CET
Thanks again Len for the serious testing; and Stig for the nice advisory comment 0.

Keywords: (none) => advisory, validated_update
CC: (none) => lewyssmith, sysadmin-bugs

Comment 4 Mageia Robot 2018-12-27 00:09:41 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2018-0187.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.