public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/redis/, dev-db/redis/files/
Date: Sun, 25 Sep 2022 01:21:15 +0000 (UTC)	[thread overview]
Message-ID: <1664068827.fd92a504228d5932eaaf750ea469e8ed63b3fd04.sam@gentoo> (raw)

commit:     fd92a504228d5932eaaf750ea469e8ed63b3fd04
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Fri Sep 23 07:53:56 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 25 01:20:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd92a504

dev-db/redis: fix sometime failing tests due to bgsaveerr issue

This change backports patch from upstream PR #11043 in order to properly
solve bug #872278 reported for version 7.0.4 which affects version 7.0.5
as well. In upstream, the fix is not part of 7.0 branch, it is only
present in unstable branch.

Upstream-PR: https://github.com/redis/redis/pull/11043
Bug: https://bugs.gentoo.org/860372
Bug: https://bugs.gentoo.org/872278
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/redis-7.0.4-replica-tests-fix.patch      | 61 ++++++++++++++++++++++
 dev-db/redis/redis-7.0.4.ebuild                    |  1 +
 dev-db/redis/redis-7.0.5.ebuild                    |  1 +
 3 files changed, 63 insertions(+)

diff --git a/dev-db/redis/files/redis-7.0.4-replica-tests-fix.patch b/dev-db/redis/files/redis-7.0.4-replica-tests-fix.patch
new file mode 100644
index 000000000000..55da00137b46
--- /dev/null
+++ b/dev-db/redis/files/redis-7.0.4-replica-tests-fix.patch
@@ -0,0 +1,61 @@
+From e7144693e2446f21ee68c95676ecf65d1351d13e Mon Sep 17 00:00:00 2001
+From: Binbin <binloveplay1314@qq.com>
+Date: Wed, 27 Jul 2022 19:58:25 +0800
+Subject: [PATCH] Fix bgsaveerr issue in psync wrong offset test (#11043)
+
+The kill above is sometimes successful and sometimes already too late.
+The PING in pysnc wrong offset test got rejected by bgsaveerr because
+lastbgsave_status is C_ERR.
+
+In theory, using diskless can avoid PING being affected, because when
+the replica is dropped, we will kill the child with SIGUSR1, and this
+will not affect lastbgsave_status.
+
+Anyway, this kill is not particularly needed here, dropping the kill
+is the best one, since we do have the waitForBgsave, so just let it
+take care of the bgsave. No need for fast termination.
+---
+
+This patch is backported from upstream, see PR #11043.
+
+Upstream-PR: https://github.com/redis/redis/pull/11043
+
+diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl
+index d60c91918..457c3150e 100644
+--- a/tests/integration/replication.tcl
++++ b/tests/integration/replication.tcl
+@@ -1289,7 +1289,6 @@ start_server {tags {"repl" "external:skip"}} {
+         verify_log_message 0 "*Replica generated a reply to command 'ping', disconnecting it: *" $lines
+ 
+         $rd close
+-        catch {exec kill -9 [get_child_pid 0]}
+         waitForBgsave r
+     }
+ 
+@@ -1307,7 +1306,6 @@ start_server {tags {"repl" "external:skip"}} {
+         verify_log_message 0 "*Replica generated a reply to command 'xinfo|help', disconnecting it: *" $lines
+ 
+         $rd close
+-        catch {exec kill -9 [get_child_pid 0]}
+         waitForBgsave r
+     }
+ 
+@@ -1328,7 +1326,6 @@ start_server {tags {"repl" "external:skip"}} {
+         verify_log_message 0 "*Replica can't interact with the keyspace*" $lines
+ 
+         $rd close
+-        catch {exec kill -9 [get_child_pid 0]}
+         waitForBgsave r
+     }
+ 
+@@ -1347,7 +1344,6 @@ start_server {tags {"repl" "external:skip"}} {
+         verify_log_message 0 "*Replica generated a reply to command 'slowlog|get', disconnecting it: *" $lines
+ 
+         $rd close
+-        catch {exec kill -9 [get_child_pid 0]}
+         waitForBgsave r
+     }
+ 
+-- 
+2.35.1
+

diff --git a/dev-db/redis/redis-7.0.4.ebuild b/dev-db/redis/redis-7.0.4.ebuild
index 773c003e309f..2cf77ae9969e 100644
--- a/dev-db/redis/redis-7.0.4.ebuild
+++ b/dev-db/redis/redis-7.0.4.ebuild
@@ -53,6 +53,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch
 	"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
 	"${FILESDIR}"/${PN}-7.0.4-no-which.patch
+	"${FILESDIR}"/${PN}-7.0.4-replica-tests-fix.patch
 )
 
 src_prepare() {

diff --git a/dev-db/redis/redis-7.0.5.ebuild b/dev-db/redis/redis-7.0.5.ebuild
index d16e991e2f8b..6df6a3e08780 100644
--- a/dev-db/redis/redis-7.0.5.ebuild
+++ b/dev-db/redis/redis-7.0.5.ebuild
@@ -53,6 +53,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch
 	"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
 	"${FILESDIR}"/${PN}-7.0.4-no-which.patch
+	"${FILESDIR}"/${PN}-7.0.4-replica-tests-fix.patch
 )
 
 src_prepare() {


             reply	other threads:[~2022-09-25  1:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-25  1:21 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-10 12:28 [gentoo-commits] repo/gentoo:master commit in: dev-db/redis/, dev-db/redis/files/ Petr Vaněk
2023-08-17  6:22 Sam James
2022-07-02 14:55 Sam James
2022-06-01  2:08 Sam James
2022-04-28  2:38 Sam James
2022-04-28  2:18 Sam James
2021-03-04  4:19 Sam James
2021-02-04 22:27 Thomas Deutschmann
2019-04-18  5:11 Robin H. Johnson
2018-10-26 13:18 Thomas Deutschmann
2018-08-15  3:09 Robin H. Johnson
2017-10-12 20:37 Robin H. Johnson
2017-10-08 23:24 Robin H. Johnson
2017-04-10 17:29 Austin English

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1664068827.fd92a504228d5932eaaf750ea469e8ed63b3fd04.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox