Program: 97861
Project: 97861
Buggy source:
@Test public void testTimeSeriesData(){
  if (FactorySingleton.getServerType() != DbTypeEnum.CASSANDRA || FactorySingleton.getServerType() != DbTypeEnum.IN_MEMORY)   return;
  NoSqlTypedSession typedSession=mgr.getTypedSession();
  String colFamily="String_Node_Str";
  long partitionSize=TimeUnit.MILLISECONDS.convert(30,TimeUnit.DAYS);
  DboTableMeta tm=new DboTableMeta();
  tm.setTimeSeries(true);
  tm.setTimeSeriesPartionSize(partitionSize);
  tm.setup(colFamily,"String_Node_Str",false,false);
  tm.setColNameType(long.class);
  DboColumnIdMeta idMeta=new DboColumnIdMeta();
  idMeta.setup(tm,"String_Node_Str",BigInteger.class,false);
  DboColumnCommonMeta meta=new DboColumnCommonMeta();
  meta.setup(tm,"String_Node_Str",BigDecimal.class,false,false);
  mgr.put(idMeta);
  mgr.put(meta);
  mgr.put(tm);
  mgr.flush();
  TypedRow row=typedSession.createTypedRow(colFamily);
  BigInteger rowKey=new BigInteger("String_Node_Str");
  row.setRowKey(rowKey);
  row.addTimeValue(0,new BigDecimal(56));
  row.addTimeValue(10,new BigDecimal(56));
  row.addTimeValue(20,new BigDecimal(56));
  row.addTimeValue(30,new BigDecimal(56));
  row.addTimeValue(40,new BigDecimal(56));
  row.addTimeValue(50,new BigDecimal(56));
  row.addTimeValue(60,new BigDecimal(56));
  row.addTimeValue(70,new BigDecimal(56));
  row.addTimeValue(80,new BigDecimal(56));
  row.addTimeValue(90,new BigDecimal(56));
  row.addTimeValue(100,new BigDecimal(56));
  typedSession.put(colFamily,row);
  typedSession.flush();
  Cursor<TimeValColumn> timeVal=typedSession.timeSeriesSlice(colFamily,rowKey,40,60,200);
  for (int i=0; i < 3; i++) {
    timeVal.next();
    TimeValColumn current=timeVal.getCurrent();
    Assert.assertEquals(i * 10 + 40,current.getTime());
  }
}

Fixed version (ground truth):
@Test public void testTimeSeriesData(){
  NoSqlTypedSession typedSession=mgr.getTypedSession();
  String colFamily="String_Node_Str";
  long partitionSize=TimeUnit.MILLISECONDS.convert(30,TimeUnit.DAYS);
  DboTableMeta tm=new DboTableMeta();
  tm.setTimeSeries(true);
  tm.setTimeSeriesPartionSize(partitionSize);
  tm.setup(colFamily,"String_Node_Str",false,false);
  tm.setColNameType(long.class);
  DboColumnIdMeta idMeta=new DboColumnIdMeta();
  idMeta.setup(tm,"String_Node_Str",BigInteger.class,false);
  DboColumnCommonMeta meta=new DboColumnCommonMeta();
  meta.setup(tm,"String_Node_Str",BigDecimal.class,false,false);
  mgr.put(idMeta);
  mgr.put(meta);
  mgr.put(tm);
  mgr.flush();
  TypedRow row=typedSession.createTypedRow(colFamily);
  BigInteger rowKey=new BigInteger("String_Node_Str");
  row.setRowKey(rowKey);
  row.addTimeValue(0,new BigDecimal(56));
  row.addTimeValue(10,new BigDecimal(56));
  row.addTimeValue(20,new BigDecimal(56));
  row.addTimeValue(30,new BigDecimal(56));
  row.addTimeValue(40,new BigDecimal(56));
  row.addTimeValue(50,new BigDecimal(56));
  row.addTimeValue(60,new BigDecimal(56));
  row.addTimeValue(70,new BigDecimal(56));
  row.addTimeValue(80,new BigDecimal(56));
  row.addTimeValue(90,new BigDecimal(56));
  row.addTimeValue(100,new BigDecimal(56));
  typedSession.put(colFamily,row);
  typedSession.flush();
  Cursor<TimeValColumn> timeVal=typedSession.timeSeriesSlice(colFamily,rowKey,40,60,200);
  for (int i=0; i < 3; i++) {
    timeVal.next();
    TimeValColumn current=timeVal.getCurrent();
    Assert.assertEquals(i * 10 + 40,current.getTime());
  }
}