From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6592C158094 for ; Sun, 25 Sep 2022 01:21:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B02EBE0B8B; Sun, 25 Sep 2022 01:21:19 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6DBFFE0B89 for ; Sun, 25 Sep 2022 01:21:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9ADD1340E9A for ; Sun, 25 Sep 2022 01:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC1B55F1 for ; Sun, 25 Sep 2022 01:21:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1664068827.fd92a504228d5932eaaf750ea469e8ed63b3fd04.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/redis/, dev-db/redis/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/redis/files/redis-7.0.4-replica-tests-fix.patch dev-db/redis/redis-7.0.4.ebuild dev-db/redis/redis-7.0.5.ebuild X-VCS-Directories: dev-db/redis/ dev-db/redis/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: fd92a504228d5932eaaf750ea469e8ed63b3fd04 X-VCS-Branch: master Date: Sun, 25 Sep 2022 01:21:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 78366687-c261-46c5-b91b-9d7ef601cfe0 X-Archives-Hash: b873fb6474efc73bbf0b6c9ccf0dfeaf commit: fd92a504228d5932eaaf750ea469e8ed63b3fd04 Author: Petr Vaněk atlas cz> AuthorDate: Fri Sep 23 07:53:56 2022 +0000 Commit: Sam James gentoo 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 atlas.cz> Signed-off-by: Sam James 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 +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() {