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

HDDS-2999. Move server-related shared utilities from common to framework #544

Merged
merged 4 commits into from Feb 14, 2020

Conversation

elek
Copy link
Member

@elek elek commented Feb 11, 2020

What changes were proposed in this pull request?

hdds-common project is shared between all the client and server projects. hdds-server-framework project is shared between all the server side services.

To reduce unnecessary dependencies (to Hadoop, for example) we can move all the server-side related classes (eg. rocksdb layer, certificate tools) to the framework from the common.

We don't need the rocksdb utilities and certificate tools on the client side.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-2999

How was this patch tested?

With maven build. This is only a compile level restructure of the code

@elek
Copy link
Member Author

elek commented Feb 11, 2020

@anuengineer Next step forward to a Hadoop independent common. Please review if you have time (no logic has been changed just moving methods and classes between locations...)

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @elek for cleaning this up. LGTM, except removal of TestRatisHelper. Also, making tools depend on server-framework seems a bit awkward, but we can improve it later.

@elek
Copy link
Member Author

elek commented Feb 14, 2020

Also, making tools depend on server-framework seems a bit awkward, but we can improve it later.

Agree. Earlier I proposed to rename all the proto files to use three categories:

  • client protocols (eg. ozone-client, hdds-client proto): for the types which should be available from the client
  • server protocols (for services between servers, like the cert client, can be blocked on the firewall from outside)
  • admin protocols (for protocols used by admin cli tools)

We can organize the dependencies based on similar principals.

As of now we have:

  • common (shared between servers and clients)
  • framework (shared between servers)

We can create separated project for the shared classes between tools (cli) and servers ("admin" classes)

  • common (shared between servers, clients, tools)
  • framework (formerly common-serverside) (shared between servers)
  • common-tools (shared between servers and tools)

I am not sure about the dependency hierarchy between common-tools and common but we can do it in the near future...

@adoroszlai adoroszlai merged commit 7e62db0 into apache:master Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants