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-4242. Copy PrefixInfo proto to new project hadoop-ozone/interface-storage #1444

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

amaliujia
Copy link
Contributor

What changes were proposed in this pull request?

As a following effort, try to move PrefixInfo and other necessary classes to interface-stroage

What is the link to the Apache JIRA

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

How was this patch tested?

Unit Test

@amaliujia
Copy link
Contributor Author

amaliujia commented Sep 23, 2020

R @elek

Only migrating PrefixInfo because I want to see whether my current approach makes sense (e.g. move some classes to interface-storage meanwhile need to copy some classes).

* <li>world::rw
* </ul>
*/
final class OzoneAclStorage {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have to duplicate this class because the original one was used by different places. That's why I make this class package-private to make it only useable by codec classes.

@elek elek self-requested a review September 28, 2020 16:01
Copy link
Member

@elek elek left a comment

Choose a reason for hiding this comment

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

+1, thanks the patch @amaliujia

One comment: I am not sure if we need a separated util classes where we have static toProtobuf and fromProtobuf methods. As we already have an interface which has the responsibility of encode/decode classes (Codec) I would consider moving all encoding/decoding logic to the codec and re-use from there (if necessary).

But this is just my opinion, and I can be convinced.

(As we expect more patches I am fine to merge it as is, but we can continue the discussion...)

@amaliujia
Copy link
Contributor Author

amaliujia commented Sep 29, 2020

@elek your suggestion make senses as the new util classes are dedicated to be used by interface-storage. If it is even dedicated to be used by a codec class, it can be moved into the codec class.

How about let me try to remove util classes in the next PR?

This PR is to have a working migration for single proto migration to build consensus around naming convention, how to deal with helpers/util classes. As this PR looks good overall, I will move ~3 proto in each future PR to accelerate migrate process while keep each PR be easier to review.

I can address the util class comment in the next PR with more data points there (e.g. 3 more proto migration)

@amaliujia
Copy link
Contributor Author

@elek friendly ping~ WDYT on the idea in my previous reply?

@elek
Copy link
Member

elek commented Oct 5, 2020

Sorry, I was busy at apachecon last week. Sure, fine to do it later. it's just an opinion and fine to follow it in next PRs.

Let me merge it now.

@elek elek merged commit d6d27e4 into apache:master Oct 5, 2020
@amaliujia amaliujia deleted the HDDS-4242 branch October 5, 2020 17:19
errose28 pushed a commit to errose28/ozone that referenced this pull request Oct 6, 2020
errose28 added a commit to errose28/ozone that referenced this pull request Oct 14, 2020
* master: (23 commits)
  HDDS-4122. Implement OM Delete Expired Open Key Request and Response (apache#1435)
  HDDS-4336. ContainerInfo does not persist BCSID (sequenceId) leading to failed replica reports (apache#1488)
  Remove extra serialization from getBlockID (apache#1470)
  HDDS-4262. Use ClientID and CallID from Rpc Client to detect retry requests (apache#1436)
  HDDS-4285. Read is slow due to frequent calls to UGI.getCurrentUser() and getTokens() (apache#1454)
  HDDS-4312. findbugs check succeeds despite compile error (apache#1476)
  HDDS-4311. Type-safe config design doc points to OM HA (apache#1477)
  HDDS-3814. Drop a column family through debug cli tool (apache#1083)
  HDDS-3728. Bucket space: check quotaUsageInBytes when write key and allocate block. (apache#1458)
  HDDS-4316. Upgrade to angular 1.8.0 due to CVE-2020-7676 (apache#1481)
  HDDS-4325. Incompatible return codes from Ozone getconf -confKey (apache#1485). Contributed by Doroszlai, Attila.
  HDDS-4309. Fix inconsistency in recon config keys starting with recon and not ozone (apache#1478)
  HDDS-4310: Ozone getconf broke the compatibility (apache#1475)
  HDDS-4298. Use an interface in Ozone client instead of XceiverClientManager (apache#1460)
  HDDS-4280. Document notable configurations for Recon. (apache#1448)
  HDDS-4156. add hierarchical layout to Chinese doc (apache#1368)
  HDDS-4242. Copy PrefixInfo proto to new project hadoop-ozone/interface-storage (apache#1444)
  HDDS-4264. Uniform naming conventions of Ozone Shell Options. (apache#1447)
  HDDS-4271. Avoid logging chunk content in Ozone Insight (apache#1466)
  HDDS-4299. Display Ratis version with ozone version (apache#1464)
  ...
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.

2 participants