Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2819

NPE in ATS Timeline Domains when upgrading from 2.4 to 2.6

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: timelineserver
    • Labels:
    • Target Version/s:

      Description

      Caused by: java.lang.NullPointerException
              at java.lang.String.<init>(String.java:554)
              at org.apache.hadoop.yarn.server.timeline.LeveldbTimelineStore.put(LeveldbTimelineStore.java:873)
              at org.apache.hadoop.yarn.server.timeline.LeveldbTimelineStore.put(LeveldbTimelineStore.java:1014)
              at org.apache.hadoop.yarn.server.timeline.TimelineDataManager.postEntities(TimelineDataManager.java:330)
              at org.apache.hadoop.yarn.server.timeline.webapp.TimelineWebServices.postEntities(TimelineWebServices.java:260)
      

      triggered by

      entity.getRelatedEntities();
      ...
                  } else {
                    byte[] domainIdBytes = db.get(createDomainIdKey(
                        relatedEntityId, relatedEntityType, relatedEntityStartTime));
                    // This is the existing entity
                    String domainId = new String(domainIdBytes);
                    if (!domainId.equals(entity.getDomainId())) {
      

      The new String(domainIdBytes); throws an NPE.

        Attachments

        1. YARN-2819.1.patch
          21 kB
          Zhijie Shen

          Activity

            People

            • Assignee:
              zjshen Zhijie Shen
              Reporter:
              gopalv Gopal Vijayaraghavan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: