From 3188fc241d41bd0a9dbc3b17c7a93b4505293526 Mon Sep 17 00:00:00 2001 From: Distix listener Date: Sat, 18 Jun 2016 11:55:09 +0200 Subject: imported mails --- .../cur/.this-dir-not-empty/.empty/empty-file | 0 .../new/.this-dir-not-empty/.empty/empty-file | 0 .../Maildir/new/1466243709.M350905P15343Q1.hrun | 150 +++++++++++++++++++++ .../tmp/.this-dir-not-empty/.empty/empty-file | 0 .../1113f1af92984443b3e44700449aadc1/ticket.yaml | 4 + 5 files changed, 154 insertions(+) create mode 100644 tickets/1113f1af92984443b3e44700449aadc1/Maildir/cur/.this-dir-not-empty/.empty/empty-file create mode 100644 tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/.this-dir-not-empty/.empty/empty-file create mode 100644 tickets/1113f1af92984443b3e44700449aadc1/Maildir/new/1466243709.M350905P15343Q1.hrun create mode 100644 tickets/1113f1af92984443b3e44700449aadc1/Maildir/tmp/.this-dir-not-empty/.empty/empty-file create mode 100644 tickets/1113f1af92984443b3e44700449aadc1/ticket.yaml (limited to 'tickets') 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 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 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: +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 ; 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 ; 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 ) 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 ; 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" +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 +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-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 +--- + 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 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" -- cgit v1.2.1