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

Insert, Delete and Insert into a column family doesnt work...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.5
    • None
    • None
    • Linux, Cassandra .5

    • Low

    Description

      Here is the code to reproduce the issue...

      ColumnPath colpath = new ColumnPath().setColumn_family("VERSIONS").setSuper_column("123".getBytes()).setColumn("1234".getBytes());
      con.insert("WBXCDOCUMENT", "vijay", colpath, "test".getBytes(), System.currentTimeMillis(), 2);

      ColumnPath path = new ColumnPath().setColumn_family("VERSIONS").setSuper_column("123".getBytes());
      con.remove("WBXCDOCUMENT", "vijay", path, System.currentTimeMillis(), 2);

      con.insert("WBXCDOCUMENT", "vijay", colpath, "test".getBytes(), System.currentTimeMillis(), 2);

      ColumnOrSuperColumn col = con.get("WBXCDOCUMENT", "vijay", path, 2);
      assertEquals(col.getSuper_column().getColumns() != null, true);

      Expected result, get the column family..... but it throws notfound exception which is wrong.

      Attachments

        1. 703-05.txt
          10 kB
          Jonathan Ellis
        2. 703-trunk.txt
          9 kB
          Jonathan Ellis
        3. bug-fix-703.txt
          11 kB
          Vijay

        Activity

          People

            jbellis Jonathan Ellis
            vijay2win@yahoo.com Vijay
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: