Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9541717F28 for ; Wed, 25 Mar 2015 11:34:07 +0000 (UTC) Received: (qmail 46292 invoked by uid 500); 25 Mar 2015 11:34:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 46249 invoked by uid 500); 25 Mar 2015 11:34:07 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 46236 invoked by uid 99); 25 Mar 2015 11:34:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 11:34:07 +0000 Date: Wed, 25 Mar 2015 11:34:07 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8561) Tombstone log warning does not log partition key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14379731#comment-14379731 ] Aleksey Yeschenko commented on CASSANDRA-8561: ---------------------------------------------- Firstly, you've rebased incorrectly, overriding the changes of CASSANDRA-8559. Secondly, you worry about key length here, while slices formatted could take just as much, or much less, of the log space. I'd just leave it be as is, except make {{boolean warnTombstones}} also take {{logger.isWarnEnabled}} into account. Altogether this should give people a way to at least disable the code path entirely by disabling logger preferences for {{SliceQueryFilter}}. 500 feels extremely arbitrary to me. It's not even a nice round number. If you do decide to truncate output, after all, pick a round one - maybe 256 or 512 - and truncate the entire log message, not just the key. Adding yet another config option, yaml or -D, is the last thing we need. Pick a hardcoded one or don't truncate at all, one of the two. > Tombstone log warning does not log partition key > ------------------------------------------------ > > Key: CASSANDRA-8561 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8561 > Project: Cassandra > Issue Type: Improvement > Components: Core > Environment: Datastax DSE 4.5 > Reporter: Jens Rantil > Assignee: Lyuben Todorov > Labels: logging > Fix For: 2.1.4 > > Attachments: cassandra-2.1-1427196372-8561-v2.diff, cassandra-2.1-8561.diff, cassandra-2.1-head-1427124485-8561.diff, cassandra-trunk-head-1427125869-8561.diff, trunk-1427195046-8561-v2.diff > > > AFAIK, the tombstone warning in system.log does not contain the primary key. See: https://gist.github.com/JensRantil/44204676f4dbea79ea3a > Including it would help a lot in diagnosing why the (CQL) row has so many tombstones. > Let me know if I have misunderstood something. -- This message was sent by Atlassian JIRA (v6.3.4#6332)