Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3316

getResolvedEntityVertex returns null if AtlasRelatedObjectId is referenced with AtlasObjectId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      In EntityGraphMapper.java

      public AtlasVertex getResolvedEntityVertex(AtlasObjectId objId) {
       AtlasVertex vertex = resolvedIdsByUniqAttribs.get(objId);
      

       
      getResolvedEntityVertex method returns null if AtlasObjectId has AtlasRelatedObjectId.

       

      Even if the AtlasObjectId and AtlasRelatedObjectId refer to the same entity (conceptually the same), they will have different hashcode, the server cannot use hashcode of  AtlasRelatedObjectId to find AtlasObjectId.

       

      The fix is to create new AtlasObjectId from AtlasRelatedObjectId values and use that for lookup

       

      Attachments

        1. ATLAS-3316-V2.patch
          1 kB
          Mandar Ambawane

        Issue Links

          Activity

            People

              mandar_va Mandar Ambawane
              nixon Nixon Rodrigues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: