Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1939

Incorrect job information is set while logging

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None

      Description

      2014-07-16 17:28:06,422 DEBUG CoordChangeXCommand:545 [http-0.0.0.0-4443-5] - USER[hadoopqa] GROUP[users] TOKEN[] APP[coordB236] JOB[0011514-140716042555-oozie-oozi-C] ACTION[-] Acquired lock for [0011385-140716042555-oozie-oozi-C] in [coord_change]
      2014-07-16 17:28:06,422 TRACE CoordChangeXCommand:548 [http-0.0.0.0-4443-5] - USER[hadoopqa] GROUP[users] TOKEN[] APP[coordB236] JOB[0011514-140716042555-oozie-oozi-C] ACTION[-] Load state for [0011385-140716042555-oozie-oozi-C]
      
          protected void loadState() throws CommandException {
              jpaService = Services.get().get(JPAService.class);
              if (jpaService == null) {
                  LOG.error(ErrorCode.E0610);
              }
      
              try {
                  coordJob = CoordJobQueryExecutor.getInstance().get(CoordJobQuery.GET_COORD_JOB_MATERIALIZE, jobId);
                  prevStatus = coordJob.getStatus();
              }
              catch (JPAExecutorException jex) {
                  throw new CommandException(jex);
              }
      
              // calculate start materialize and end materialize time
              calcMatdTime();
      
              LogUtils.setLogInfo(coordJob, logInfo);
          }
      
      

      Most of the commands set jobinfo after loadstate, because of that few log statements ( like acquiring lock, load state) logs with previous jobinfo.

        Attachments

        1. OOZIE-1939.1.patch
          18 kB
          seoeun
        2. OOZIE-1939.2.patch
          55 kB
          seoeun
        3. OOZIE-1939.3.patch
          65 kB
          seoeun
        4. OOZIE-1939.4.patch
          66 kB
          seoeun
        5. OOZIE-1939.5.patch
          66 kB
          seoeun
        6. OOZIE-1939.6.patch
          70 kB
          seoeun
        7. OOZIE-1939.7.patch
          71 kB
          seoeun

          Issue Links

            Activity

              People

              • Assignee:
                seoeun25 seoeun
                Reporter:
                puru Purshotam Shah
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: