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

Refactor protocol related code to eliminate magic numbers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Messaging/Client
    • None
    • Code Clarity
    • Low Hanging Fruit
    • All
    • None

    Description

      Parts of Cassandra's codebase has protocol related magic numbers. It makes the code hard to understand. We should refactor the code to remove magic numbers and instead replace them with versioned constants. This will help make the code clearer. Example: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/transport/messages/ErrorMessage.java#L288

      Attachments

        1. patch.diff
          12 kB
          Dean Z

        Activity

          People

            djoshi Dinesh Joshi
            djoshi Dinesh Joshi
            Dinesh Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: