eclipse-collections icon indicating copy to clipboard operation
eclipse-collections copied to clipboard

Make the Collectors returned by Collectors2AdditionalTest.sumBy*() methods thread-safe.

Open motlin opened this issue 1 year ago • 9 comments

In #1679, we deleted flaky tests that were using these Collectors as if they were thread-safe from a parallel test. It's not clear to me if all Collectors must be thread-safe. Currently they are not thread-safe because they delegate directly to hashtable mutation methods on a non-thread-safe map. If these Collectors will be used from parallel contexts, we should make them thread-safe and possibly restore the deleted tests.

motlin avatar Aug 22 '24 16:08 motlin

Hi @motlin !

I'm Riya Sharma, and I'm new to contributing to open source. I came across this issue and would love to help solve it. I’ve read through the description and think it would be a great opportunity to start contributing.

Looking forward to contributing and making a positive impact here!

Riya-Sharma12 avatar Sep 06 '24 05:09 Riya-Sharma12

Thank you @Riya-Sharma12. I assigned this issue to you. Feel free to submit a pull request with "Fixes #1680" in the commit message.

I saw you asked about joining the conversation on the email distribution list so I figured I'd mention that most conversation happens here in GitHub.

motlin avatar Sep 06 '24 14:09 motlin

Hi @motlin. I have looked into this issue and think I have come up with a fix but cannot run a local test on my fixes. I am not able to build my local repository. My issue: Not able to import any org.eclipse.collections*. Could you please help me set up this repository so that I can raise a PR? Thanks in advance.

vaibhaaavvv avatar Sep 23 '24 22:09 vaibhaaavvv

@vaibhaaavvv have you followed the steps in https://github.com/eclipse/eclipse-collections/blob/master/CONTRIBUTING.md? If so, what step fails, and with what error message?

motlin avatar Sep 23 '24 23:09 motlin

Yes @motlin I followed these steps and I am getting a compilation error in all the import org.eclipse.collections.api.block.function.primitive.* image

vaibhaaavvv avatar Sep 24 '24 22:09 vaibhaaavvv

@vaibhaaavvv those look like IDE errors. Do you get any errors when you run the maven build?

motlin avatar Sep 24 '24 22:09 motlin

No. I am able to build the project successfully before importing the repo on my IDE.

vaibhaaavvv avatar Sep 24 '24 22:09 vaibhaaavvv

Sounds like a problem where the IDE doesn't recognize all the generated sources folders. I think you're using the Eclipse IDE, is that right?. Most of the contributors here use IntelliJ. Are you familiar with how to configure extra generated sources folder?

motlin avatar Sep 24 '24 22:09 motlin

Yes. In this case I am using Eclipse IDE. I'll try to import it in Intellij and will let you know if I face any issue.

vaibhaaavvv avatar Sep 24 '24 22:09 vaibhaaavvv