[ https://issues.apache.org/jira/browse/KYLIN-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
hongbin ma updated KYLIN-947: ----------------------------- Assignee: Dong Li (was: ZhouQianhao) > streaming fail at fetching timestamp from kafka > ----------------------------------------------- > > Key: KYLIN-947 > URL: https://issues.apache.org/jira/browse/KYLIN-947 > Project: Kylin > Issue Type: Bug > Affects Versions: v2.0 > Reporter: hongbin ma > Assignee: Dong Li > > It seems kafka is failing to fetch a offset that is exactly between > startoffset and endoffset, which should not happen at all > 15/08/13 21:25:21 INFO streaming.StreamingUtil: topic: > Trkng.druid-sessionEvent, partitionId: 1, try to find closest offset with > timestamp: 1439498100000 between offset {4476901430, 4479189591} > 15/08/13 21:26:25 ERROR streaming.StreamingBootstrap: fail to get start > offset partitionId: 1, target timestamp: 1439498100000 > java.lang.IllegalStateException: try to get timestamp of topic:XXXX, > partitionId: 1, offset: 4478045510, failed to get StreamMessage from kafka > at > org.apache.kylin.streaming.StreamingUtil.getKafkaMessage(StreamingUtil.java:72) > at > org.apache.kylin.streaming.StreamingUtil.getDataTimestamp(StreamingUtil.java:135) > at > org.apache.kylin.streaming.StreamingUtil.getDataTimestamp(StreamingUtil.java:127) > at > org.apache.kylin.streaming.StreamingUtil.binarySearch(StreamingUtil.java:100) > at > org.apache.kylin.streaming.StreamingUtil.findClosestOffsetWithDataTimestamp(StreamingUtil.java:80) > at > org.apache.kylin.job.streaming.StreamingBootstrap$4.run(StreamingBootstrap.java:265) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.3.4#6332)