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

Cleanup Tracing class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0 beta 1
    • None
    • None

    Description

      1. Tracing instance cannot be null because it's initialized at classloading time and never changes. Made it final to prove that. Removed all redundant null checks.
      2. StorageService has a Tracing.instance() call - it should trace something or can be removed?
      3. Made sessions a ConcurrentMap to stress that it should be thread-safe.

      Attachments

        1. trunk-5625.patch
          4 kB
          Mikhail Mazursky

        Activity

          People

            ash2k Mikhail Mazursky
            ash2k Mikhail Mazursky
            Mikhail Mazursky
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: