Shao Feng Shi created KYLIN-4363: ------------------------------------ Summary: Query failed with "I failed to find one of the right cookies" error Key: KYLIN-4363 URL: https://issues.apache.org/jira/browse/KYLIN-4363 Project: Kylin Issue Type: Bug Components: Query Engine Affects Versions: v3.1.0 Reporter: Shao Feng Shi
{code:java} // code placeholder Caused by: java.lang.RuntimeException: I failed to find one of the right cookies. 1701223222Caused by: java.lang.RuntimeException: I failed to find one of the right cookies. 1701223222 at org.roaringbitmap.buffer.ImmutableRoaringArray.<init>(ImmutableRoaringArray.java:46) at org.roaringbitmap.buffer.ImmutableRoaringBitmap.<init>(ImmutableRoaringBitmap.java:908) at org.apache.kylin.measure.bitmap.RoaringBitmapCounter.peekLength(RoaringBitmapCounter.java:141) at org.apache.kylin.measure.bitmap.BitmapSerializer.peekLength(BitmapSerializer.java:69) at org.apache.kylin.cube.gridtable.CubeCodeSystem.codeLength(CubeCodeSystem.java:100) at org.apache.kylin.gridtable.GTRecord.loadColumns(GTRecord.java:279) at org.apache.kylin.storage.gtrecord.PartitionResultIterator.next(PartitionResultIterator.java:56) at org.apache.kylin.storage.gtrecord.PartitionResultIterator.next(PartitionResultIterator.java:35) at com.google.common.collect.Iterators$PeekingImpl.next(Iterators.java:1222) at org.apache.kylin.storage.gtrecord.SortMergedPartitionResultIterator.next(SortMergedPartitionResultIterator.java:93) at org.apache.kylin.storage.gtrecord.SortMergedPartitionResultIterator.next(SortMergedPartitionResultIterator.java:38) at com.google.common.collect.Iterators$PeekingImpl.next(Iterators.java:1222) at org.apache.kylin.gridtable.GTStreamAggregateScanner$AbstractStreamMergeIterator.next(GTStreamAggregateScanner.java:102) at org.apache.kylin.storage.gtrecord.SegmentCubeTupleIterator.hasNext(SegmentCubeTupleIterator.java:162) at org.apache.kylin.storage.gtrecord.PeekingImpl.hasNext(PeekingImpl.java:45) at org.apache.kylin.storage.gtrecord.SortedIteratorMerger.getHeap(SortedIteratorMerger.java:52) at org.apache.kylin.storage.gtrecord.SortedIteratorMergerWithLimit$MergedIteratorWithLimit.hasNext(SortedIteratorMergerWithLimit.java:81) at org.apache.kylin.storage.gtrecord.SequentialCubeTupleIterator.hasNext(SequentialCubeTupleIterator.java:144) at org.apache.kylin.query.enumerator.OLAPEnumerator.moveNext(OLAPEnumerator.java:63) at Baz$1$1.moveNext(Unknown Source) at org.apache.calcite.linq4j.EnumerableDefaults.aggregate(EnumerableDefaults.java:116) at org.apache.calcite.linq4j.DefaultEnumerable.aggregate(DefaultEnumerable.java:107) at Baz.bind(Unknown Source) at org.apache.calcite.jdbc.CalcitePrepare$CalciteSignature.enumerable(CalcitePrepare.java:365) at org.apache.calcite.jdbc.CalciteConnectionImpl.enumerable(CalciteConnectionImpl.java:301) at org.apache.calcite.jdbc.CalciteMetaImpl._createIterable(CalciteMetaImpl.java:559) at org.apache.calcite.jdbc.CalciteMetaImpl.createIterable(CalciteMetaImpl.java:550) at org.apache.calcite.avatica.AvaticaResultSet.execute(AvaticaResultSet.java:182) at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:67) {code} I build a cube with an older version of Kylin, and then query the cube from the latest master version, and then got this error. With some analysis, I think it is related with KYLIN-4322 -- This message was sent by Atlassian Jira (v8.3.4#803005)