You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by mh...@apache.org on 2019/06/14 01:32:38 UTC

[asterixdb] branch master updated: [NO ISSUE][OTH] Skip Calling Job Result Callback For Unknown Jobs

This is an automated email from the ASF dual-hosted git repository.

mhubail pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b81d19  [NO ISSUE][OTH] Skip Calling Job Result Callback For Unknown Jobs
7b81d19 is described below

commit 7b81d193ed5b8b24c31ae37e5cde6362cbf07152
Author: Murtadha Hubail <mh...@apache.org>
AuthorDate: Fri Jun 14 02:54:13 2019 +0300

    [NO ISSUE][OTH] Skip Calling Job Result Callback For Unknown Jobs
    
    - user model changes: no
    - storage format changes: no
    - interface changes: no
    
    Details:
    - Skip calling the job result callback on a job's completion
      when the job's result record is not found. This can happen
      if a job's execution time exceeds the result's TTL in which
      case we remove the job's result reference.
    
    Change-Id: I7ba09da4292213b63d2396d21969329e86634c06
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/3439
    Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Reviewed-by: Murtadha Hubail <mh...@apache.org>
    Reviewed-by: Hussain Towaileb <hu...@gmail.com>
---
 .../org/apache/hyracks/control/cc/result/ResultDirectoryService.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/result/ResultDirectoryService.java b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/result/ResultDirectoryService.java
index bfecc48..9f8a7e2 100644
--- a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/result/ResultDirectoryService.java
+++ b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/result/ResultDirectoryService.java
@@ -96,7 +96,10 @@ public class ResultDirectoryService extends AbstractResultManager implements IRe
     @Override
     public void notifyJobFinish(JobId jobId, JobStatus jobStatus, List<Exception> exceptions) throws HyracksException {
         if (exceptions == null || exceptions.isEmpty()) {
-            final ResultJobRecord resultJobRecord = getNonNullResultJobRecord(jobId);
+            final ResultJobRecord resultJobRecord = getResultJobRecord(jobId);
+            if (resultJobRecord == null) {
+                return;
+            }
             resultJobRecord.finish();
             jobResultCallback.completed(jobId, resultJobRecord);
         }