summaryrefslogtreecommitdiff
path: root/tickets
diff options
context:
space:
mode:
authorDistix listener <distix@pieni.net>2016-06-18 11:55:09 +0200
committerDistix listener <distix@pieni.net>2016-06-18 11:55:09 +0200
commit3188fc241d41bd0a9dbc3b17c7a93b4505293526 (patch)
treea79051a5e8b8a420d60061676df85bc112a72959 /tickets
parent1a60e084c55d354f9a446bf5f77dd24bbd8615e8 (diff)
downloadobnam-dev-distix-3188fc241d41bd0a9dbc3b17c7a93b4505293526.tar.gz
imported mails
Diffstat (limited to 'tickets')
-rw-r--r--tickets/1113f1af92984443b3e44700449aadc1/Maildir/cur/.this-dir-not-empty/.empty/empty-file0
-rw-r--r--tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/.this-dir-not-empty/.empty/empty-file0
-rw-r--r--tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/1466243709.M350905P15343Q1.hrun150
-rw-r--r--tickets/1113f1af92984443b3e44700449aadc1/Maildir/tmp/.this-dir-not-empty/.empty/empty-file0
-rw-r--r--tickets/1113f1af92984443b3e44700449aadc1/ticket.yaml4
5 files changed, 154 insertions, 0 deletions
diff --git a/tickets/1113f1af92984443b3e44700449aadc1/Maildir/cur/.this-dir-not-empty/.empty/empty-file b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/cur/.this-dir-not-empty/.empty/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/cur/.this-dir-not-empty/.empty/empty-file
diff --git a/tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/.this-dir-not-empty/.empty/empty-file b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/.this-dir-not-empty/.empty/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/.this-dir-not-empty/.empty/empty-file
diff --git a/tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/1466243709.M350905P15343Q1.hrun b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/1466243709.M350905P15343Q1.hrun
new file mode 100644
index 0000000..e766301
--- /dev/null
+++ b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/1466243709.M350905P15343Q1.hrun
@@ -0,0 +1,150 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 26DB421322
+ for <distix@pieni.net>; Sat, 18 Jun 2016 11:55:03 +0200 (CEST)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id 4C010CA;
+ Sat, 18 Jun 2016 10:55:02 +0100 (BST)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1bECxy-0005e1-5q; Sat, 18 Jun 2016 10:55:02 +0100
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1bECxw-0005d9-Qy
+ for <obnam-dev@obnam.org>; Sat, 18 Jun 2016 10:55:00 +0100
+Received: from smtp.gentoo.org ([140.211.166.183])
+ by mx0.pepperfish.net with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
+ (Exim 4.80) (envelope-from <robbat2@gentoo.org>) id 1bECxu-0001AQ-A4
+ for obnam-dev@obnam.org; Sat, 18 Jun 2016 10:55:00 +0100
+Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1])
+ (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by smtp.gentoo.org (Postfix) with ESMTPS id 4374C34076D
+ for <obnam-dev@obnam.org>; Sat, 18 Jun 2016 09:54:42 +0000 (UTC)
+Received: (qmail 16616 invoked by uid 129); 18 Jun 2016 09:54:42 -0000
+X-HELO: bohr-int.orbis-terrarum.net
+Authentication-Results: orbis-terrarum.net; auth=pass (plain)
+ smtp.auth=robbat2-bohr@orbis-terrarum.net
+Received: from Unknown (HELO bohr-int.orbis-terrarum.net) (2001:470:e889:1::8)
+ by orbis-terrarum.net (qpsmtpd/0.95) with ESMTPSA
+ (ECDHE-RSA-AES256-GCM-SHA384 encrypted); Sat, 18 Jun 2016 09:54:42 +0000
+Received: (nullmailer pid 28347 invoked by uid 10000);
+ Sat, 18 Jun 2016 09:48:44 -0000
+From: "Robin H. Johnson" <robbat2@gentoo.org>
+To: obnam-dev@obnam.org
+Date: Sat, 18 Jun 2016 02:48:43 -0700
+Message-Id: <20160618094844.28217-2-robbat2@gentoo.org>
+X-Mailer: git-send-email 2.9.0
+In-Reply-To: <20160618094844.28217-1-robbat2@gentoo.org>
+References: <20160618094844.28217-1-robbat2@gentoo.org>
+X-Virus-Checked: Checked by ClamAV on orbis-terrarum.net
+X-Spam-Score: -8.3
+X-Spam-Score-int: -82
+X-Spam-Bar: --------
+X-Scanned-By: pepperfish.net, Sat, 18 Jun 2016 10:55:00 +0100
+X-Spam-Report: Content analysis details: (-8.3 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high
+ trust [140.211.166.183 listed in list.dnswl.org]
+ -0.0 SPF_PASS SPF: sender matches SPF record
+ -1.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+X-ACL-Warn: message may be spam
+X-Scan-Signature: ead9a2b6d4436a72c03b49bb9387508d
+Subject: [PATCH 2/3] ForceLock: new subcommand naming,
+ add lock-force-release-client
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+The force-lock command name is ambigious with the addition of new
+lock-handling subcommands.
+
+Convert to a new naming scheme with the addition of a command to
+forcibly release the lock for a single client.
+
+This command is useful if a single client exits because it could not
+acquire the global locks, and you only want to release that client's
+lock to resume it.
+
+Print a deprecation message for any old users of force-lock, and do not
+include force-lock in the help output.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+---
+ obnamlib/plugins/force_lock_plugin.py | 27 ++++++++++++++++++++++++---
+ 1 file changed, 24 insertions(+), 3 deletions(-)
+
+diff --git a/obnamlib/plugins/force_lock_plugin.py b/obnamlib/plugins/force_lock_plugin.py
+index 28bf641..a14d680 100644
+--- a/obnamlib/plugins/force_lock_plugin.py
++++ b/obnamlib/plugins/force_lock_plugin.py
+@@ -45,13 +45,24 @@ class RepoAccessWrapper(object):
+ class ForceLockPlugin(obnamlib.ObnamPlugin):
+
+ def enable(self):
+- self.app.add_subcommand('force-lock', self.force_lock)
++ # legacy:
++ self.app.add_subcommand('force-lock', self.force_lock, hidden=True)
+ self.app.add_subcommand('_lock', self.lock, hidden=True)
+
++ # new:
++ self.app.add_subcommand('lock-force-release-all', self.force_release_all_locks)
++ self.app.add_subcommand('lock-force-release-client', self.force_release_client_lock)
++
+ def force_lock(self, args):
+ '''Force a locked repository to be open.'''
+-
+- logging.info('Forcing lock')
++ self.app.ts.notify("force-lock is deprecated. " +
++ "Use force-release-all-locks or a " +
++ "more specific variant)")
++ self.force_release_all_locks(args)
++
++ def force_release_all_locks(self, args):
++ '''Forcibly release all locks.'''
++ logging.info('Forcibly releasing all locks')
+ with RepoAccessWrapper(self) as repo:
+ repo.force_client_list_lock()
+ for client_name in repo.get_client_names():
+@@ -59,6 +70,16 @@ class ForceLockPlugin(obnamlib.ObnamPlugin):
+ repo.force_chunk_indexes_lock()
+ return 0
+
++ def force_release_client_lock(self, args):
++ '''Forcibily release a specific client lock.'''
++
++ client_name = self.app.settings['client-name']
++ logging.info('Forcibly releasing client lock for %s', client_name)
++ with RepoAccessWrapper(self) as repo:
++ repo.force_client_lock(client_name)
++ return 0
++
++
+ def lock(self, args):
+ '''Add locks to the repository.
+
+--
+2.9.0
+
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/1113f1af92984443b3e44700449aadc1/Maildir/tmp/.this-dir-not-empty/.empty/empty-file b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/tmp/.this-dir-not-empty/.empty/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tickets/1113f1af92984443b3e44700449aadc1/Maildir/tmp/.this-dir-not-empty/.empty/empty-file
diff --git a/tickets/1113f1af92984443b3e44700449aadc1/ticket.yaml b/tickets/1113f1af92984443b3e44700449aadc1/ticket.yaml
new file mode 100644
index 0000000..ae77332
--- /dev/null
+++ b/tickets/1113f1af92984443b3e44700449aadc1/ticket.yaml
@@ -0,0 +1,4 @@
+ticket-id:
+- 1113f1af92984443b3e44700449aadc1
+title:
+- "[PATCH 2/3] ForceLock: new subcommand naming,\n\tadd lock-force-release-client"