Cassandra
  1. Cassandra
  2. CASSANDRA-2536

Schema disagreements when using connections to multiple hosts

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Fix Version/s: 0.7.6, 0.8.0 beta 2
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Two node 0.8-beta1 cluster with one seed and JNA.

      Description

      If you have two thrift connections open to different nodes and you create a KS using the first, then a CF in that KS using the second, you wind up with a schema disagreement even if you wait/sleep after creating the KS.

      The attached script reproduces the issue using pycassa (1.0.6 should work fine, although it has the 0.7 thrift-gen code). It's also reproducible by hand with two cassandra-cli sessions.

      1. 2536-compare-timestamp.txt
        0.8 kB
        Tyler Hobbs
      2. schema_disagree.py
        1 kB
        Tyler Hobbs

        Activity

        Tyler Hobbs created issue -
        Tyler Hobbs made changes -
        Field Original Value New Value
        Attachment schema_disagree.py [ 12477050 ]
        Jonathan Ellis made changes -
        Assignee Gary Dusbabek [ gdusbabek ]
        Stu Hood made changes -
        Link This issue blocks CASSANDRA-1391 [ CASSANDRA-1391 ]
        Stu Hood made changes -
        Link This issue blocks CASSANDRA-1391 [ CASSANDRA-1391 ]
        Gary Dusbabek made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Tyler Hobbs made changes -
        Assignee Gary Dusbabek [ gdusbabek ] Tyler Hobbs [ thobbs ]
        Tyler Hobbs made changes -
        Attachment 2536-compare-timestamp.txt [ 12477706 ]
        Tyler Hobbs made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Jonathan Ellis made changes -
        Fix Version/s 0.7.6 [ 12316377 ]
        Fix Version/s 0.8.1 [ 12316368 ]
        Affects Version/s 0.7.0 [ 12316026 ]
        Affects Version/s 0.8 beta 1 [ 12314820 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Jonathan Ellis made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Reviewer jbellis
        Resolution Fixed [ 1 ]
        Jonathan Ellis made changes -
        Fix Version/s 0.8.0 [ 12316379 ]
        Fix Version/s 0.8.1 [ 12316368 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12611195 ] patch-available, re-open possible [ 12752795 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12752795 ] reopen-resolved, no closed status, patch-avail, testing [ 12755561 ]

          People

          • Assignee:
            Tyler Hobbs
            Reporter:
            Tyler Hobbs
            Reviewer:
            Jonathan Ellis
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development