jaegertracing / spark-dependencies

Spark job for dependency links
http://jaegertracing.io/
Apache License 2.0
124 stars 69 forks source link

There is a problem with the generated data #98

Open masontin opened 4 years ago

masontin commented 4 years ago

Environment

Execute by Jar file

$ STORAGE=elasticsearch ES_NODES=http://elasticsearch-ccssoft-oss-paas.ccssh.center:80 /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/bin/java -jar jaeger-spark-dependencies/target/jaeger-spark-dependencies-0.0.1-SNAPSHOT.jar
20/08/11 19:01:00 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
20/08/11 19:01:02 INFO ElasticsearchDependenciesJob: Running Dependencies job for 2020-08-11T00:00Z, reading from jaeger-span-2020-08-11 index, result storing to jaeger-dependencies-2020-08-11
20/08/11 19:01:10 INFO ElasticsearchDependenciesJob: Done, 7 dependency objects created

This is generated data

{
    "data": [{
        "parent": "gateway",
        "child": "smartccp",
        "callCount": 2
    }, {
        "parent": "gateway",
        "child": "",
        "callCount": 8
    }, {
        "parent": "gateway",
        "child": "smartprovision",
        "callCount": 6
    }, {
        "parent": "smartflow",
        "child": "gateway",
        "callCount": 8
    }, {
        "parent": "gateway",
        "child": "gateway",
        "callCount": 16
    }, {
        "parent": "smartflow",
        "child": "smartflow",
        "callCount": 36
    }, {
        "parent": "jaeger-query",
        "child": "jaeger-query",
        "callCount": 122
    }],
    "total": 0,
    "limit": 0,
    "offset": 0,
    "errors": null
}

then I got a console error when I click the [Jaeger UI/System Architecture/DAG] link

Error: Can not create element with invalid string ID ``
    le cytoscape.cjs.js:852
    restore cytoscape.cjs.js:12245
    $o cytoscape.cjs.js:11966
    add cytoscape.cjs.js:12712
    ji cytoscape.cjs.js:17746
    ji cytoscape.cjs.js:17774
    ji cytoscape.cjs.js:17721
    ji cytoscape.cjs.js:17765
    Su cytoscape.cjs.js:30506
    value DAG.js:56
    React 3
    unstable_runWithPriority scheduler.production.min.js:274
    React 5

and my [Force Directed Graph] is also is weird like this

图片

Duplicate Node ?

pavolloffay commented 4 years ago

@everett980 is this UI issue? The child node's service name is an empty string that is causing an error in the UI.