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 #3090 #3091 refining the store interface and hasSynced #3167

Merged
merged 4 commits into from
Jun 9, 2021

Conversation

shawkins
Copy link
Contributor

@shawkins shawkins commented May 24, 2021

Description

Refining the Store interface by splitting internal and mutative methods to SyncableStore

Removing isPopulated and directly wiring the cache to be used
this adds an isRunning method to the SharedInformer. this clarifies the
cache methods to be more like a map and the underlying map is now
concurrent to remove read locks

This could be seen as a breaking change since Store is somewhat of a public interface - however it seems much clearer and safer to have a narrower interface.

Closes #3013

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

@shawkins shawkins requested review from manusa and rohanKanojia May 24, 2021 20:29
@centos-ci
Copy link

Can one of the admins verify this patch?

@shawkins shawkins force-pushed the remove-df-after-cache branch from 975c377 to 65e3e5f Compare May 25, 2021 12:14
…sSynced

splitting internal and mutative methods to SyncableStore

removing isPopulated and directly wiring the cache to be used
this adds an isRunning method to the SharedInformer.  this clarifies the
cache methods to be more like a map and the underlying map is now
concurrent to remove read locks
@shawkins shawkins force-pushed the remove-df-after-cache branch from 65e3e5f to 57ba9f6 Compare May 25, 2021 12:54
@shawkins shawkins force-pushed the remove-df-after-cache branch from 684f99f to 7448742 Compare May 26, 2021 17:43
@sonarqubecloud
Copy link

@shawkins shawkins added this to the 5.5.0 milestone Jun 7, 2021
@manusa
Copy link
Member

manusa commented Jun 8, 2021

Relates to: #2010

@manusa manusa requested a review from rohanKanojia June 9, 2021 08:08
Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

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

LGTM, thx!

@manusa manusa merged commit 8c67e58 into fabric8io:master Jun 9, 2021
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.

IndexInformer cant restart after call function stop
5 participants