You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/02/03 10:05:00 UTC

[jira] [Commented] (ASTERIXDB-2513) Add a function to get currently running jobs

    [ https://issues.apache.org/jira/browse/ASTERIXDB-2513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759350#comment-16759350 ] 

ASF subversion and git services commented on ASTERIXDB-2513:
------------------------------------------------------------

Commit 1041389b66a7473ee69001489253a25a9affe352 in asterixdb's branch refs/heads/master from Murtadha Makki Al Hubail
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=1041389 ]

[ASTERIXDB-2513][FUN] Add Active_Requests Function

- user model changes: no
- storage format changes: no
- interface changes: yes

Details:
- Add a datasource function (active_requests) which
  returns the active jobs that the user specified
  client_context_id for.
- This function runs on a single NC and uses messaging
  to get the currently running jobs from CC.
- Currently, the function returns the following fields:
  -- clientContextId: the user specified clientContextId.
  -- requestTime: a timestamp at which the request reference
                  was created.
  -- jobId: optionally, the job id that belongs to this request.
- The function may be improved later to return all jobs and it may
  return additional fields such as (request uuid, statement,
  executionTime, elapsedTime, nodeAddress, userAgent, etc..)
- Add test case.
- Do not allow cancellation test to cancel queries with
  clientContextId to avoid intermittent failures.

Change-Id: I95962742161ed18c4cf2e09c8541c8ad3b35356c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3136
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mb...@apache.org>


> Add a function to get currently running jobs
> --------------------------------------------
>
>                 Key: ASTERIXDB-2513
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2513
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: FUN - Functions
>            Reporter: Murtadha Hubail
>            Assignee: Murtadha Hubail
>            Priority: Major
>
> A function that returns currently running jobs will allow the users to check which jobs are currently running and which ones can be cancelled using the cancellation API. We should add such function.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)