You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2025/02/19 06:05:00 UTC

[jira] [Resolved] (HDDS-12331) BlockOutputStream.failedServers is not thread-safe

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

Attila Doroszlai resolved HDDS-12331.
-------------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

> BlockOutputStream.failedServers is not thread-safe
> --------------------------------------------------
>
>                 Key: HDDS-12331
>                 URL: https://issues.apache.org/jira/browse/HDDS-12331
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Client
>            Reporter: Attila Doroszlai
>            Assignee: Chia-Chuan Yu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> {{ConcurrentModificationException}} of {{BlockOutputStream#failedServers}}:
> {code}
> [INFO] Running org.apache.hadoop.ozone.client.rpc.TestMultiBlockWritesWithDnFailures
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 42.017 s <<< FAILURE! - in org.apache.hadoop.ozone.client.rpc.TestMultiBlockWritesWithDnFailures
> [ERROR] org.apache.hadoop.ozone.client.rpc.TestMultiBlockWritesWithDnFailures.testMultiBlockWritesWithIntermittentDnFailures  Time elapsed: 41.997 s  <<< ERROR!
> java.io.IOException: java.util.ConcurrentModificationException
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.handleWrite(KeyOutputStream.java:293)
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.lambda$write$1(KeyOutputStream.java:249)
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.doInWriteLock(KeyOutputStream.java:260)
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.write(KeyOutputStream.java:248)
> 	at org.apache.hadoop.ozone.client.io.OzoneOutputStream.write(OzoneOutputStream.java:94)
> 	at java.base/java.io.OutputStream.write(OutputStream.java:124)
> 	at org.apache.hadoop.ozone.client.rpc.TestMultiBlockWritesWithDnFailures.testMultiBlockWritesWithIntermittentDnFailures(TestMultiBlockWritesWithDnFailures.java:216)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
> 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
> Caused by: java.util.ConcurrentModificationException
> 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1598)
> 	at org.apache.hadoop.hdds.scm.container.common.helpers.ExcludeList.addDatanodes(ExcludeList.java:82)
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.handleStreamAction(KeyOutputStream.java:617)
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.handleFlushOrClose(KeyOutputStream.java:590)
> 	at org.apache.hadoop.ozone.client.io.KeyOutputStream.handleWrite(KeyOutputStream.java:287)
> 	... 9 more
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org