There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
HDInsight: JobDetails have incorrect StatusCode values when getting job using JobClient
I am using HDInsight .NET SDK for submitting Hive jobs to the cluster and I noticed that the JobDetails object have incorrect values when we get a job using JobClient(jobId).
For instance, the JobDetails object of a job which was "Failed" will have StatusCode value as "Completed".
See code snippet below:
jobDetails = await jobClient.GetJobAsync(jobId);
See the attached screen grab, left hand side is from the HDInsight Query console showing that the job was Failed, Where as on the right hand side (black bg) the status is shown as Completed using .net sdk.
This bug was about to go in our production environment and would have resulted in incorrect calculations which are very business critical. Can you please look into this issue.