[ https://issues.apache.org/jira/browse/ATLAS-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj resolved ATLAS-1102. ------------------------------------- Resolution: Abandoned This refers to code that doesn't exist any more in Atlas. > DefaultMetadataServiceTest can fail in json string comparison > ------------------------------------------------------------- > > Key: ATLAS-1102 > URL: https://issues.apache.org/jira/browse/ATLAS-1102 > Project: Atlas > Issue Type: Bug > Reporter: Dave Kantor > Assignee: Vimal Sharma > Priority: Minor > > When running build on a Linux VM, I observed DefaultMetadataServiceTest > failing when doing a comparison of json strings serialized from Reference > instances. The objects are equivalent but the attributes are serialized in a > different order. > {noformat} > DefaultMetadataServiceTest.testSpecialCharacters:231->assertReferenceableEquals:251 > expected:<{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-3902865145221408", > "version":0, > "typeName":"C23uFuNbhg\"${}%", > "state":"ACTIVE" > }, > "typeName":"C23uFuNbhg\"${}%", > "values":{ > "pSXqnaPYeh\"${}%":"DYm4diYqog\"${}%", > "ectzWlqBQt\"${}%":[ > "rxstQGf9Ym\"${}%" > ], > "D9fOcAp4M5\"${}%":{ > "sNZLOZhnno\"${}%":"aqhsYeSqwn\"${}%" > } > }, > "traitNames":[ > ], > "traits":{ > } > }> but was:<{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-3902865145221408", > "version":0, > "typeName":"C23uFuNbhg\"${}%", > "state":"ACTIVE" > }, > "typeName":"C23uFuNbhg\"${}%", > "values":{ > "ectzWlqBQt\"${}%":[ > "rxstQGf9Ym\"${}%" > ], > "pSXqnaPYeh\"${}%":"DYm4diYqog\"${}%", > "D9fOcAp4M5\"${}%":{ > "sNZLOZhnno\"${}%":"aqhsYeSqwn\"${}%" > } > }, > "traitNames":[ > ], > "traits":{ > } > }> > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)