From commits-return-32282-archive-asf-public=cust-asf.ponee.io@couchdb.apache.org Wed Feb 28 21:00:38 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9B5A418066D for ; Wed, 28 Feb 2018 21:00:37 +0100 (CET) Received: (qmail 73819 invoked by uid 500); 28 Feb 2018 20:00:36 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 73800 invoked by uid 99); 28 Feb 2018 20:00:36 -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; Wed, 28 Feb 2018 20:00:36 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 1B3E182643; Wed, 28 Feb 2018 20:00:36 +0000 (UTC) Date: Wed, 28 Feb 2018 20:00:37 +0000 To: "commits@couchdb.apache.org" Subject: [couchdb] 01/01: TMP - Now with more debug! MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: davisp@apache.org In-Reply-To: <151984803596.8736.15801251455947681463@gitbox.apache.org> References: <151984803596.8736.15801251455947681463@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: couchdb X-Git-Refname: refs/heads/jenkins-pre-pse-daemon-test X-Git-Reftype: branch X-Git-Rev: c67fcb750f903ba579dbba79d0749e6e52477411 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180228200036.1B3E182643@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. davisp pushed a commit to branch jenkins-pre-pse-daemon-test in repository https://gitbox.apache.org/repos/asf/couchdb.git commit c67fcb750f903ba579dbba79d0749e6e52477411 Author: Paul J. Davis AuthorDate: Wed Feb 28 12:10:53 2018 -0600 TMP - Now with more debug! --- src/couch/test/couchdb_compaction_daemon_tests.erl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/couch/test/couchdb_compaction_daemon_tests.erl b/src/couch/test/couchdb_compaction_daemon_tests.erl index 0d7a468..4dd1846 100644 --- a/src/couch/test/couchdb_compaction_daemon_tests.erl +++ b/src/couch/test/couchdb_compaction_daemon_tests.erl @@ -21,6 +21,10 @@ [couch_db_updater, couch_mrview_compactor, couch_compaction_daemon]). +log(Fmt, Args) -> + io:format(standard_error, Fmt, Args). + + start() -> Ctx = test_util:start_couch(), ok = config:set("compaction_daemon", "check_interval", "3", false), @@ -73,6 +77,8 @@ compaction_daemon_test_() -> should_compact_by_default_rule(DbName) -> {timeout, ?TIMEOUT_S, ?_test(begin + log("XKCD: I AM TEST!~n", []), + CompactionMonitor = spawn_compaction_monitor(DbName), {_, DbFileSize} = get_db_frag(DbName), @@ -93,6 +99,8 @@ should_compact_by_default_rule(DbName) -> {DbFrag2, DbFileSize2} = get_db_frag(DbName), {ViewFrag2, ViewFileSize2} = get_view_frag(DbName), + log("~nXKCD: ~p ~p ~p~n", [DbFileSize, DbFileSize2, DbFrag2]), + ?assert(DbFrag2 < 70), ?assert(ViewFrag2 < 70), @@ -195,6 +203,7 @@ get_db_frag(DbName) -> couch_db:close(Db), FileSize = get_size(file, Info), DataSize = get_size(active, Info), + log("~nXKCD: ~p ~p ~w~n", [FileSize, DataSize, Info]), {round((FileSize - DataSize) / FileSize * 100), FileSize}. get_view_frag(DbName) -> -- To stop receiving notification emails like this one, please contact davisp@apache.org.