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

Simplify BlobStoreRepository (Flatten Nested Classes) (#42833) #44060

Merged
merged 3 commits into from
Jul 8, 2019

Conversation

original-brownbear
Copy link
Member

  • In the current codebase it is hardly obvious what code operates on a shard and is run by a datanode what code operates on the global metadata and is run on master
    • Fixed by adjusting the method names accordingly
  • The nested context classes don't add much if any value, they simply spread out the parameters that go into a shard snapshot create or delete all over the place since their
    constructors can be inlined in all spots
    • Fixed by flattening the nested classes into BlobStoreRepository
  • Also:
    • Inlined the other single use inner classes

backport of #42833

* In the current codebase it is hardly obvious what code operates on a shard and is run by a datanode what code operates on the global metadata and is run on master
   * Fixed by adjusting the method names accordingly
* The nested context classes don't add much if any value, they simply spread out the parameters that go into a shard snapshot create or delete all over the place since their
constructors can be inlined in all spots
   * Fixed by flattening the nested classes into BlobStoreRepository
* Also:
  * Inlined the other single use inner classes
@original-brownbear original-brownbear merged commit 2918363 into elastic:7.x Jul 8, 2019
@original-brownbear original-brownbear deleted the 42833-7.x branch July 8, 2019 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant