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

ISSUE#259 Race issue: CollectionMemberField #278

Merged
merged 3 commits into from
May 17, 2021
Merged

ISSUE#259 Race issue: CollectionMemberField #278

merged 3 commits into from
May 17, 2021

Conversation

platsko
Copy link
Contributor

@platsko platsko commented May 14, 2021

Closes #259

- CollectionEntity thread safe
- CollectionMemberField thread safe
- required refactoring
@platsko platsko requested a review from Sriep May 14, 2021 10:30
Copy link
Contributor

@Sriep Sriep left a comment

Choose a reason for hiding this comment

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

It is looking good. I think the lint issue might be resolved by merging in recent master changes.

@platsko
Copy link
Contributor Author

platsko commented May 15, 2021

It is looking good. I think the lint issue might be resolved by merging in recent master changes.

It is already on master HEAD. I tried to restart git actions and got the same result and have not ideas what is going on. )

@platsko platsko closed this May 15, 2021
@platsko platsko reopened this May 15, 2021
@platsko platsko requested a review from Sriep May 15, 2021 08:52
@Sriep
Copy link
Contributor

Sriep commented May 15, 2021

You seem to have gained two lint errors in store.go (not sure why)

core/persistencestore/store.go:131:21: Error return value of `datastore.FromJSON` is not checked (errcheck)
		datastore.FromJSON(json, entities[i])
		                  ^
core/persistencestore/store.go:214:14: Error return value is not checked (errcheck)
		initSession(1*time.Second, 0)
		           ^

There is also

core/persistencestore/store.go:64:20: Error return value of `datastore.FromJSON` is not checked (errcheck)
	datastore.FromJSON(json, entity)

but that was already there.

I pulled master run ./docker.local/bin/build.base.sh and docker.local\bin\linter.sh > 1.txt, then pulled issues/259 and run ./docker.local/bin/build.base.sh and docker.local\bin\linter.sh > 2.txt. Then did a difference on the results.

Hmmm, there seem to be other differences as well, maybe adding new files alters the lint algorithm. My head hurts.

@Sriep Sriep merged commit 18c5665 into master May 17, 2021
@Sriep Sriep deleted the issues/259 branch May 17, 2021 10:55
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.

Race issue: CollectionMemberField
2 participants