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

CLI should loop on describe_schema until agreement or fatel exit with stacktrace/message if no agreement after X seconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7.1
    • None
    • None
    • Normal

    Description

      see CASSANDRA-2026 for brief background.

      It's easy to enter statements into the CLI before the schema has settled, often causing problems where it is no longer possible to get the nodes in agreement about the schema without removing the system directory.

      The alleviate the most common problems with this, the CLI should issue the modification statement and loop on describe_schema until all nodes agree or until X seconds has passed. If the timeout has been exceeded, the CLI should exit with an error and inform the user that the schema has not settled and further migrations are ill-advised until it does.

      number_of_nodes/2+1 seconds seems like a decent wait time for schema migrations to start with.

      Bonus points for making the value configurable.

      Attachments

        1. CASSANDRA-2044.patch
          6 kB
          Pavel Yaskevich

        Activity

          People

            xedin Pavel Yaskevich
            mdennis Matthew F. Dennis
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h Time Not Required
                2h