Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4931

Better printing of AbstractBound in tracing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 beta 3
    • None
    • None

    Description

      We currently trace messages like:

      Tracing.trace("Executing seq scan across {} sstables for {}..{}", new Object[]{view.sstables.size(), startWith, stopAt});
      

      This lack a little bit of precision in the sense that it doesn't say if the start/end are inclusive or exclusive (all of which we do support). Also, for order preserving partitioner, we allow startWith and stopAt to be actual keys, and in that case the output will be 'DecoratedKey(<token>, <key_in_hex))' which unnecessarily obscure. Attaching patch to switch to a nicer representation.

      Attachments

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: