[ https://issues.apache.org/jira/browse/HDDS-1956?focusedWorklogId=293967&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-293967 ]
ASF GitHub Bot logged work on HDDS-1956: ---------------------------------------- Author: ASF GitHub Bot Created on: 13/Aug/19 15:35 Start Date: 13/Aug/19 15:35 Worklog Time Spent: 10m Work Description: adoroszlai commented on pull request #1287: HDDS-1956. Aged IO Thread exits on first read URL: https://github.com/apache/hadoop/pull/1287#discussion_r313467570 ########## File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneLoadGenerator.java ########## @@ -201,11 +210,12 @@ private void startAgedFilesLoad(long runTimeMillis) { String keyName = null; try { if (agedWriteProbability.isTrue()) { - keyName = writeData(agedFileWrittenIndex.incrementAndGet(), + keyName = writeData(agedFileWrittenIndex.getAndIncrement(), agedLoadBucket, threadName); } else { - keyName = getKeyToRead(); - if (keyName != null) { + Optional<Integer> index = randomKeyToRead(); + if (index.isPresent()) { + keyName = getKeyName(index.get(), threadName); readData(agedLoadBucket, keyName); Review comment: OK, makes sense. ---------------------------------------------------------------- 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 Issue Time Tracking ------------------- Worklog Id: (was: 293967) Time Spent: 1h (was: 50m) > Aged IO Thread exits on first read > ---------------------------------- > > Key: HDDS-1956 > URL: https://issues.apache.org/jira/browse/HDDS-1956 > Project: Hadoop Distributed Data Store > Issue Type: Bug > Components: test > Affects Versions: 0.5.0 > Reporter: Doroszlai, Attila > Assignee: Doroszlai, Attila > Priority: Major > Labels: pull-request-available > Time Spent: 1h > Remaining Estimate: 0h > > Aged IO Thread in {{TestMiniChaosOzoneCluster}} exits on first read due to > exception: > {code} > 2019-08-12 22:55:37,799 [pool-245-thread-1] INFO > ozone.MiniOzoneLoadGenerator > (MiniOzoneLoadGenerator.java:startAgedFilesLoad(194)) - AGED LOADGEN: Started > Aged IO Thread:2139. > ... > 2019-08-12 22:55:47,147 [pool-245-thread-1] ERROR > ozone.MiniOzoneLoadGenerator > (MiniOzoneLoadGenerator.java:startAgedFilesLoad(213)) - AGED LOADGEN: 0 > Exiting due to exception > java.lang.ArrayIndexOutOfBoundsException: 1 > at > org.apache.hadoop.ozone.MiniOzoneLoadGenerator.readData(MiniOzoneLoadGenerator.java:151) > at > org.apache.hadoop.ozone.MiniOzoneLoadGenerator.startAgedFilesLoad(MiniOzoneLoadGenerator.java:209) > at > org.apache.hadoop.ozone.MiniOzoneLoadGenerator.lambda$startIO$1(MiniOzoneLoadGenerator.java:235) > 2019-08-12 22:55:47,149 [pool-245-thread-1] INFO > ozone.MiniOzoneLoadGenerator > (MiniOzoneLoadGenerator.java:startAgedFilesLoad(219)) - Terminating IO > thread:2139. > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org