Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-22805

[CBAS] Async Result Delivery : No error when specifying an invalid handle to retrieve results from /result endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • CBAS DP2
    • CBAS DP2
    • analytics
    • None
    • Untriaged
    • No
    • CX Sprint 42, CX Sprint 43

    Description

      When specifying an invalid handle to retrieve results from the analytics/result endpoint, there is no error returned. In fact there is no response returned to the request and there are some errors in the logs.

      Request : curl -v http://10.111.151.102:8095/analytics/result?handle=%7B%22handle%22:%5B1,0%5D%7D -G

      Error in logs (cc.log):
      2017-02-14T09:45:18.752Z INFO CBAS.logging.LoggingHandler [nioEventLoopGroup-2-1] [id: 0x5c8f7f4f, L:/0:0:0:0:0:0:0:0:8095] RECEIVED: [id: 0xa304ce3a, L:/10.111.151.102:8095 - R:/10.111.151.102:54912]
      2017-02-14T09:45:18.897Z INFO CBAS.work.WorkQueue [Worker:ClusterController] Executing: GetResultPartitionLocations: JobId@JID:1 ResultSetId@RSID:0 Known@null
      Exception in thread "Executor-3:ClusterController" java.lang.NullPointerException
      at org.apache.hyracks.control.cc.dataset.DatasetDirectoryService.getNonNullDatasetJobRecord(DatasetDirectoryService.java:104)
      at org.apache.hyracks.control.cc.dataset.DatasetDirectoryService.updatedRecords(DatasetDirectoryService.java:223)
      at org.apache.hyracks.control.cc.dataset.DatasetDirectoryService.getResultPartitionLocations(DatasetDirectoryService.java:196)
      at org.apache.hyracks.control.cc.work.GetResultPartitionLocationsWork$1.run(GetResultPartitionLocationsWork.java:59)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            till Till Westmann
            mihir.kamdar Mihir Kamdar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty