cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8561) Tombstone log warning does not log partition key
Date Wed, 25 Mar 2015 11:34:07 GMT


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:
>             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:
> 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

View raw message