[ 
https://issues.apache.org/jira/browse/HDDS-10218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17814951#comment-17814951
 ] 

Raju Balpande commented on HDDS-10218:
--------------------------------------

* I introduced the initiation once for all methods but it didn't work because, 
In all the methods the multiple snapshots are created. I added code to delete 
those snapshot after each method execution is over but have it requires the 
considerable wait time for snapshot to delete.

- I tried by mock and reset the objects blockClient, containerClient but this 
gives error in method createKey at line 
`keyArg.addLocationInfo(managerProtocol.allocateBlock(keyArg, session.getId(), 
new ExcludeList()));`.
{code:java}
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:659)
    at java.util.ArrayList.get(ArrayList.java:435)
    at 
org.apache.hadoop.ozone.om.request.key.OMAllocateBlockRequest.preExecute(OMAllocateBlockRequest.java:144)
    at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.lambda$preExecute$2(OzoneManagerProtocolServerSideTranslatorPB.java:233)
    at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB$$Lambda$968/0x0000000000000000.get(Unknown
 Source){code}
Only two solutions I see here.
 * Either the reset, delete should work withing minimum time or
 * else the assert statements will need slight modification to consider the 
earlier records. (Will enable method execution order). [~adoroszlai] do you 
suggest this approach.

> Speed up TestSstFilteringService
> --------------------------------
>
>                 Key: HDDS-10218
>                 URL: https://issues.apache.org/jira/browse/HDDS-10218
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Raju Balpande
>            Priority: Major
>
> {code}
> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 59.41 
> s -- in org.apache.hadoop.ozone.om.TestSstFilteringService
> {code}
> It may be possible to improve execution time by converting per-test setup to 
> per-class.  See [pull request|https://github.com/apache/ozone/pull/6107] of 
> HDDS-10215 for similar solution in other test using {{OmTestManagers}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to