Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Collectors.toList method occur duplicate key problem#4645 #4646

Merged

Conversation

CharlieYan24
Copy link
Contributor

@CharlieYan24 CharlieYan24 commented Jun 15, 2023

What is the purpose of the change

Fix Collectors.toList method occur duplicate key problem

Related issues/PRs

Related issues: #4645

Brief change log

Fix Collectors.toList method occur duplicate key problem

 2023-06-15 22:54:10.507 [INFO ] [qtp12691277-535                         ] o.a.l.m.a.s.e.DefaultEngineAskEngineService (92) [askEngine] [JobId-179] - task: 179 user hadoo
p reuse engine failed java.lang.IllegalStateException: Duplicate key [key: userCreator, value: {"creator":"IDE","user":"hadoop"}, str: {"creator":"IDE","user":"hadoop"}]
        at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133) ~[?:1.8.0_192]
        at java.util.HashMap.merge(HashMap.java:1254) ~[?:1.8.0_192]
        at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) ~[?:1.8.0_192]
        at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:1.8.0_192]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_192]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_192]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_192]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_192]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_192]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_192]
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_192]
        at org.apache.linkis.manager.label.score.DefaultNodeLabelScorer.traversalAndScoreOnOutDegree(DefaultNodeLabelScorer.java:85) ~[linkis-application-manager-1.4.0-SN
APSHOT.jar:1.4.0-SNAPSHOT]
        at org.apache.linkis.manager.label.score.DefaultNodeLabelScorer.calculate(DefaultNodeLabelScorer.java:51) ~[linkis-application-manager-1.4.0-SNAPSHOT.jar:1.4.0-SN
APSHOT]
        at org.apache.linkis.manager.label.service.impl.DefaultNodeLabelService.getScoredNodeMapsByLabels(DefaultNodeLabelService.java:403) ~[linkis-application-manager-1
.4.0-SNAPSHOT.jar:1.4.0-SNAPSHOT]
        at org.apache.linkis.manager.label.service.impl.DefaultNodeLabelService.getScoredNodeMapsByLabels(DefaultNodeLabelService.java:312) ~[linkis-application-manager-1
.4.0-SNAPSHOT.jar:1.4.0-SNAPSHOT]
        at org.apache.linkis.manager.label.service.impl.DefaultNodeLabelService$$FastClassBySpringCGLIB$$9c8f7f9e.invoke(<generated>) ~[linkis-application-manager-1.4.0-S
NAPSHOT.jar:1.4.0-SNAPSHOT]
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.23.RELEASE.jar:5.2.23.RELEASE]

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

@CharlieYan24 CharlieYan24 changed the title fix: reuse engine failed #4645 fix Collectors.toList method occur duplicate key problem#4645 Jun 18, 2023
Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants