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-3142. Create isolated enviornment for OM to test it without SCM. #656

Merged
merged 5 commits into from
Mar 19, 2020

Conversation

elek
Copy link
Member

@elek elek commented Mar 10, 2020

What changes were proposed in this pull request?

OmKeyGenerator class from Freon can generate keys (open key + commit key). But this test tests both OM and SCM performance. It seems to be useful to have a method to test only the OM performance with faking the response from SCM.

Can be done easily with the same approach what we have in HDDS-3023: A simple utility class can be implemented and with byteman we can replace the client calls with the fake method.

What is the link to the Apache JIRA

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

How was this patch tested?

  1. Download byteman
  2. Start a pure OM (ozone om --init + ozone om) with the following JVM parameters: (change the path)
-javaagent:/home/elek/prog/byteman/lib/byteman.jar=script:/home/elek/projects/ozone/dev-support/byteman/mock-scm.btm,boot:/home/elek/prog/byteman/lib/byteman.jar
-Dorg.jboss.byteman.transform.all
  1. Start a simple freon test: ozone freon omkg

Expected result: It should be possible to init and start OM without SCM and test it with the key generator)

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 working on this. Tested, works well.

Would be nice to include mock-scm.btm script in hadoop-ozone/dist/target for testing.

@elek
Copy link
Member Author

elek commented Mar 18, 2020

Thanks the review @adoroszlai, I fixed the typo bugs.

Would be nice to include mock-scm.btm script in hadoop-ozone/dist/target for testing.

100% agree. I created an issue to track this: https://issues.apache.org/jira/browse/HDDS-3232

@adoroszlai adoroszlai merged commit 281faf3 into apache:master Mar 19, 2020
@adoroszlai
Copy link
Contributor

Thanks @elek for updating the patch.

@elek
Copy link
Member Author

elek commented Mar 24, 2020

HDDS-3160 is accidentally added to this pr (sorry for that)

  1. I will revert the original merge
  2. Remove HDDS-3160
  3. Create a new PR without that
  4. And merge it after a green build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants