Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 07F1E200D1B for ; Thu, 28 Sep 2017 08:07:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0677A1609EB; Thu, 28 Sep 2017 06:07:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4D4DC1609CA for ; Thu, 28 Sep 2017 08:07:47 +0200 (CEST) Received: (qmail 37640 invoked by uid 500); 28 Sep 2017 06:07:46 -0000 Mailing-List: contact commits-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list commits@openwhisk.apache.org Received: (qmail 37630 invoked by uid 99); 28 Sep 2017 06:07:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2017 06:07:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id AC1DC81982; Thu, 28 Sep 2017 06:07:43 +0000 (UTC) Date: Thu, 28 Sep 2017 06:07:43 +0000 To: "commits@openwhisk.apache.org" Subject: [incubator-openwhisk] branch master updated: Exclude sequences from activation log cleanup. (#2801) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150657886378.6858.7519144463099286631@gitbox.apache.org> From: cbickel@apache.org Reply-To: "commits@openwhisk.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-openwhisk X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 03023a10b7c9717652330feb0aa73ad1cd38e1bf X-Git-Newrev: 5ef17f1e2744ad0c9a35d97a7323bbf76f5032f0 X-Git-Rev: 5ef17f1e2744ad0c9a35d97a7323bbf76f5032f0 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Thu, 28 Sep 2017 06:07:48 -0000 This is an automated email from the ASF dual-hosted git repository. cbickel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git The following commit(s) were added to refs/heads/master by this push: new 5ef17f1 Exclude sequences from activation log cleanup. (#2801) 5ef17f1 is described below commit 5ef17f1e2744ad0c9a35d97a7323bbf76f5032f0 Author: rodric rabbah AuthorDate: Thu Sep 28 02:07:41 2017 -0400 Exclude sequences from activation log cleanup. (#2801) --- ansible/files/activations_design_document_for_activations_db.json | 2 +- ansible/files/logCleanup_design_document_for_activations_db.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/files/activations_design_document_for_activations_db.json b/ansible/files/activations_design_document_for_activations_db.json index f6a6240..565c1e9 100644 --- a/ansible/files/activations_design_document_for_activations_db.json +++ b/ansible/files/activations_design_document_for_activations_db.json @@ -2,7 +2,7 @@ "_id": "_design/activations", "views": { "byDate": { - "map": "function (doc) {\n var PATHSEP = \"/\";\n\n var isActivation = function (doc) { return (doc.activationId !== undefined) };\n\n if (isActivation(doc)) try {\n emit(doc.start, [doc._id, doc._rev])\n } catch (e) {}\n}" + "map": "function (doc) {\n if (doc.activationId !== undefined) try {\n emit(doc.start, [doc._id, doc._rev]);\n } catch (e) {}\n}" } }, "language": "javascript" diff --git a/ansible/files/logCleanup_design_document_for_activations_db.json b/ansible/files/logCleanup_design_document_for_activations_db.json index b269823..9a97a5e 100644 --- a/ansible/files/logCleanup_design_document_for_activations_db.json +++ b/ansible/files/logCleanup_design_document_for_activations_db.json @@ -2,7 +2,7 @@ "_id": "_design/logCleanup", "views": { "byDateWithLogs": { - "map": "function (doc) {\n if (doc.activationId !== undefined && doc.logs && doc.logs.length > 0) {\n emit(doc.start, doc._id);\n }\n}" + "map": "function (doc) {\n if (doc.activationId !== undefined && doc.logs && doc.logs.length > 0) try {\n var deleteLogs = true;\n for (i = 0; i < doc.annotations.length; i++) {\n var a = doc.annotations[i];\n if (a.key == \"kind\") {\n deleteLogs = a.value != \"sequence\";\n break;\n }\n }\n if (deleteLogs) {\n emit(doc.start, doc._id);\n }\n } catch (e) {}\n}" } }, "language": "javascript" -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" '].