Skip to content

Commit

Permalink
addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
virajjasani committed Aug 5, 2022
1 parent 127d230 commit e6292d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ static void setThreadIOStatisticsContext(
*
* @return if the thread-level IO statistics enabled.
*/
static boolean getIOStatisticsThreadLevelEnabled() {
return IOStatisticsContextIntegration.getIOStatisticsThreadLevelEnabled();
static boolean enabled() {
return IOStatisticsContextIntegration.isIOStatisticsThreadLevelEnabled();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public final class IOStatisticsContextIntegration {
*
* @return if the thread-level IO statistics enabled.
*/
public static boolean getIOStatisticsThreadLevelEnabled() {
public static boolean isIOStatisticsThreadLevelEnabled() {
return isThreadIOStatsEnabled;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public void testS3AInputStreamIOStatisticsContext()
* @return thread context
*/
private static IOStatisticsContext getAndResetThreadStatisticsContext() {
assertTrue(IOStatisticsContext.getIOStatisticsThreadLevelEnabled());
assertTrue("thread-level IOStatistics should be enabled by default",
IOStatisticsContext.enabled());
IOStatisticsContext context =
IOStatisticsContext.getCurrentIOStatisticsContext();
context.reset();
Expand Down

0 comments on commit e6292d5

Please sign in to comment.