elek opened a new pull request #656: HDDS-3142. Create isolated enviornment for 
OM to test it without SCM.
URL: https://github.com/apache/hadoop-ozone/pull/656
 
 
   ## 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](https://byteman.jboss.org/)
    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
   ``` 
   
    3. 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)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to