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

Refactor protocol related code to eliminate magic numbers

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            djoshi Dinesh Joshi Assign to me
            djoshi Dinesh Joshi
            Dinesh Joshi

            Dates

              Created:
              Updated:

              Slack

                Issue deployment