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

Prevent ISE duplicate key when checking if instrumentation can be used #14765

Closed
wants to merge 1 commit into from

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Feb 2, 2021

No description provided.

@ghost ghost added the area/core label Feb 2, 2021
@geoand geoand requested a review from stuartwdouglas February 2, 2021 13:17
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Added a question that (I think) needs an answer before merging.

@@ -100,7 +100,7 @@ static boolean compareAnnotations(Collection<AnnotationInstance> a, Collection<A
return false;
}
Map<DotName, AnnotationInstance> lookup = b.stream()
.collect(Collectors.toMap(AnnotationInstance::name, Function.identity()));
.collect(Collectors.toMap(AnnotationInstance::name, Function.identity(), (i1, i2) -> i1));
Copy link
Member

Choose a reason for hiding this comment

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

Do you really want to ignore the second one?

@stuartwdouglas
Copy link
Member

What actually causes this? There should not be a situation where there are duplicate annotations.

@geoand
Copy link
Contributor Author

geoand commented Feb 2, 2021

@evacchi should have a reproducer for this - he just mentioned in chat, I didn't have an actual example

@gsmet
Copy link
Member

gsmet commented Feb 2, 2021

Is it with latest Quarkus? Because we had a bug in method comparisons triggering exactly this. Martin fixed it and I believe it’s in 1.11.1.Final.

@evacchi
Copy link
Contributor

evacchi commented Feb 3, 2021

I had this issue with one of the examples with Quarkus 1.11.x IIRC -- sorry couldn't come up with a stand-alone reproducer yet. Had two separate issues, this one with

@gsmet
Copy link
Member

gsmet commented Feb 4, 2021

Could someone have a look at this? I won't have the time to check it and PRs are piling up. Looks like something we would want fixed for 1.11.2.Final.

@geoand
Copy link
Contributor Author

geoand commented Feb 4, 2021

I'll try tomorrow but I can make no guarantees as there is a ton of (high priority) work pilling up

@geoand
Copy link
Contributor Author

geoand commented Feb 4, 2021

In any case, #14775 provides a way to disable instrumentation altogether so we should definitely get that one in

@evacchi
Copy link
Contributor

evacchi commented Feb 4, 2021

yesterday I could not reproduce this on our master, so no need to rush it. Moreover, the flag to disable instrumentation should be helpful as well.

@geoand
Copy link
Contributor Author

geoand commented Feb 12, 2021

@evacchi have you had any more troubles with this?

If not, I can close this

@evacchi
Copy link
Contributor

evacchi commented Feb 15, 2021

let's close it for now @geoand

@geoand geoand closed this Feb 15, 2021
@quarkus-bot quarkus-bot bot added the triage/invalid This doesn't seem right label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core triage/invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants