[ 
https://issues.apache.org/jira/browse/HUDI-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

leesf closed HUDI-368.
----------------------
    Resolution: Fixed

Fixed via master: 3790b75e059a06e6f5467c8b8d549ef38cd6b98a

> Code clean up in TestAsyncCompaction class
> ------------------------------------------
>
>                 Key: HUDI-368
>                 URL: https://issues.apache.org/jira/browse/HUDI-368
>             Project: Apache Hudi (incubating)
>          Issue Type: Improvement
>          Components: Compaction, Testing
>            Reporter: Pratyaksh Sharma
>            Assignee: Pratyaksh Sharma
>            Priority: Major
>              Labels: newbie, pull-request-available
>             Fix For: 0.5.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> TestAsyncCompaction class has a lot of redundant method calls, or lambda 
> functions which can be simplified further. Also there are few unused 
> variables getting defined which can be removed. 
>  
> For example -> 
> assertFalse("Verify all file-slices have no log-files",
>  fileSliceList.stream().filter(fs -> fs.getLogFiles().count() > 
> 0).findAny().isPresent());
> can be simplified as - 
> assertFalse("Verify all file-slices have no log-files",
>  fileSliceList.stream().anyMatch(fs -> fs.getLogFiles().count() > 0));



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to