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

EOFException with Cassandra.Client.get_range_slices() API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 0.6.3
    • None
    • None
    • Normal

    Description

      Below is the snippet I tried to run. The keyspace is named 'Keyspac1', with only 1 column family named 'CF1'.

      ColumnParent cp = new ColumnParent("CF1");

      SlicePredicate predicate = new SlicePredicate();
      SliceRange sliceRange = new SliceRange();
      sliceRange.setStart(new byte[0]);
      sliceRange.setFinish(new byte[0]);
      predicate.setSlice_range(sliceRange);

      KeyRange range = new KeyRange(10);
      range.setStart_key("".getBytes());
      range.setEnd_key("".getBytes());

      client.set_keyspace(keyspace);
      List<KeySlice> slices = client.get_range_slices(cp, predicate, range, ConsistencyLevel.ONE);

      Then an EOFException was spit out. For readability, it is included in the next comment.

      Attachments

        1. CASSANDRA-1073.patch2
          6 kB
          Matthew F. Dennis
        2. CASSANDRA-1073.patch
          6 kB
          Matthew F. Dennis

        Issue Links

          Activity

            People

              Unassigned Unassigned
              frankdu Frank Du
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: