You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Shuyan Zhang (Jira)" <ji...@apache.org> on 2023/06/14 03:10:00 UTC
[jira] [Created] (HDFS-17049) Fix duplicate block group ids generated by SequentialBlockGroupIdGenerator
Shuyan Zhang created HDFS-17049:
-----------------------------------
Summary: Fix duplicate block group ids generated by SequentialBlockGroupIdGenerator
Key: HDFS-17049
URL: https://issues.apache.org/jira/browse/HDFS-17049
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Shuyan Zhang
When I used multiple clients to write EC files concurrently, I found that NameNode generated the same block group ID for different files:
```
2023-06-13 20:09:59,514 INFO org.apache.hadoop.hdfs.StateChange: BLOCK* allocate blk_-9223372036854697568_14389 for /ec-test/10/4068034329705654124
2023-06-13 20:09:59,514 INFO org.apache.hadoop.hdfs.StateChange: BLOCK* allocate blk_-9223372036854697568_14390 for /ec-test/19/7042966144171770731
```
After diving into `SequentialBlockGroupIdGenerator`, I found that the current implementation of `nextValue` is not thread safety.
This problem must be fixed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org