[
https://issues.apache.org/jira/browse/HDDS-1956?focusedWorklogId=293963&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-293963
]
ASF GitHub Bot logged work on HDDS-1956:
----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Aug/19 15:33
Start Date: 13/Aug/19 15:33
Worklog Time Spent: 10m
Work Description: mukul1987 commented on pull request #1287: HDDS-1956.
Aged IO Thread exits on first read
URL: https://github.com/apache/hadoop/pull/1287#discussion_r313465776
##########
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(),
Review comment:
Aged file index always start with 0, so we will never read the first file.
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 293963)
Time Spent: 50m (was: 40m)
> 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: 50m
> 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: [email protected]
For additional commands, e-mail: [email protected]