Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3900

Querying the logs for old program runs gives exception.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: Log
    • Labels:
      None
    • Release Notes:
      Return empty list in case of logs are requested for the deleted program runs.
    • Rank:
      1|hzz16v:

      Description

      Querying the logs for old program runs gives following exception

      2015-09-30T20:46:27,651Z ERROR c.c.c.l.r.FileLogReader [dev-slave4.sjc1.continuuity.net] [executor-145] FileLogReader:getLogPrev(FileLogReader.java:137) - Got exception:
      java.lang.IllegalArgumentException: fromKey > toKey
              at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1261)
              at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1699)
              at java.util.TreeMap.subMap(TreeMap.java:877)
              at java.util.TreeMap.subMap(TreeMap.java:918)
              at co.cask.cdap.logging.read.FileLogReader.getFilesInRange(FileLogReader.java:178)
              at co.cask.cdap.logging.read.FileLogReader.getLogPrev(FileLogReader.java:119)
              at co.cask.cdap.logging.read.DistributedLogReader.getLogPrev(DistributedLogReader.java:91)
              at co.cask.cdap.logging.gateway.handlers.LogHandler.doPrev(LogHandler.java:246)
              at co.cask.cdap.logging.gateway.handlers.LogHandler.runIdPrev(LogHandler.java:234)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:79)
              at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41)
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
              at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
              at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
              at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
              at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
              at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
              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)
      
      

        Attachments

          Activity

            People

            • Assignee:
              sagar Sagar Kapare
              Reporter:
              sagar Sagar Kapare
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: