Bug 24042 - Update Candidate: Redis 4.0.12
Summary: Update Candidate: Redis 4.0.12
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:
Whiteboard: MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
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:
Status comment:

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

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

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.



Uploaded to core/updates_testing


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
   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                

$ redis-cli < tutorial
(integer) 8
(integer) 9
(integer) 1
(integer) 1
(integer) 1
(integer) 40
(integer) 40
(integer) 40
(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> lrange friends 1-2<stop>
(error) ERR wrong number of arguments for 'lrange' command> lrange friends 1 2
1) "David"
2) "Suzy"> GET server:name
"pluto"> set resource:lock "Demo 2"
OK> expire "Demo 2" 10
(integer) 0

<later>> ttl resource:lock
(integer) -1> ttl resource:lock
(integer) -1

Lists are stacks or LIFO buffers:> lpush friends "Lucy"
(integer) 7> lrange friends 7 7
(empty list or set)> lrange friends 0 0
1) "Lucy"> lrange friends 0 -1
1) "Lucy"
2) "David"
3) "David"
4) "Suzy"
5) "Zack"
6) "Suzy"
7) "Zack"> 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.


Resolution: (none) => FIXED

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