[ 
https://issues.apache.org/jira/browse/CASSANDRA-7279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14006913#comment-14006913
 ] 

Edward Capriolo edited comment on CASSANDRA-7279 at 5/23/14 6:38 AM:
---------------------------------------------------------------------

I think I found an edge case. Shouldn't the all slice from "" to "" absorb "d" 
to "g" ?

{code}
  @Test
    public void testWithEmpty() throws CharacterCodingException
    {
      ColumnSlice aToE = new ColumnSlice(cellname(""), cellname(""));
      ColumnSlice dToG = new ColumnSlice(cellname("d"), cellname("g"));
      CellNameType c = new SimpleDenseCellNameType(UTF8Type.instance);
      
      ColumnSlice [] result =   SliceQueryFilter.removeOverlappingSlices(new 
ColumnSlice[]{ aToE, dToG }, false, c );
      Assert.assertEquals(1, result.length);
      Assert.assertEquals("", ByteBufferUtil.string(result[0].start.get(0)));
      Assert.assertEquals("", ByteBufferUtil.string(result[0].finish.get(0)));
    }
{code}

junit.framework.AssertionFailedError: expected:<1> but was:<2>




was (Author: appodictic):
I think I found an edge case. Shouldn't the all slice from "" to "" absorb "d" 
to "g"

{code}
  @Test
    public void testWithEmpty() throws CharacterCodingException
    {
      ColumnSlice aToE = new ColumnSlice(cellname(""), cellname(""));
      ColumnSlice dToG = new ColumnSlice(cellname("d"), cellname("g"));
      CellNameType c = new SimpleDenseCellNameType(UTF8Type.instance);
      
      ColumnSlice [] result =   SliceQueryFilter.removeOverlappingSlices(new 
ColumnSlice[]{ aToE, dToG }, false, c );
      Assert.assertEquals(1, result.length);
      Assert.assertEquals("", ByteBufferUtil.string(result[0].start.get(0)));
      Assert.assertEquals("", ByteBufferUtil.string(result[0].finish.get(0)));
    }
{code}

junit.framework.AssertionFailedError: expected:<1> but was:<2>



> MultiSliceTest.test_with_overlap* unit tests failing in trunk
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-7279
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7279
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Michael Shuler
>            Assignee: T Jake Luciani
>            Priority: Minor
>             Fix For: 2.1 rc1
>
>         Attachments: 7279-trunk.txt, 7279-trunkv2.txt, 7279-trunkv3.txt
>
>
> Example:
> https://cassci.datastax.com/job/trunk_utest/623/testReport/org.apache.cassandra.thrift/MultiSliceTest/



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to