Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.4.0
Description
Steps to reproduce:
- Start cluster with 5 datanodes
- Create EC(3,2) key
- Stop a datanode that has data blocks (non-parity)
- Try to read the key before the datanode is marked as dead in SCM
Result:
java.lang.NullPointerException at org.apache.hadoop.hdds.scm.storage.BlockInputStream.getChunkInfos(BlockInputStream.java:220) at org.apache.hadoop.hdds.scm.storage.BlockInputStream.initialize(BlockInputStream.java:144) at org.apache.hadoop.hdds.scm.storage.BlockInputStream.readWithStrategy(BlockInputStream.java:281) at org.apache.hadoop.hdds.scm.storage.ExtendedInputStream.read(ExtendedInputStream.java:64) at org.apache.hadoop.hdds.scm.storage.ByteBufferReader.readFromBlock(ByteBufferReader.java:56) at org.apache.hadoop.ozone.client.io.ECBlockInputStream.readFromStream(ECBlockInputStream.java:414) at org.apache.hadoop.ozone.client.io.ECBlockInputStream.readWithStrategy(ECBlockInputStream.java:354) at org.apache.hadoop.hdds.scm.storage.ExtendedInputStream.read(ExtendedInputStream.java:64) at org.apache.hadoop.ozone.client.io.ECBlockInputStream.read(ECBlockInputStream.java:303) at org.apache.hadoop.ozone.client.io.ECBlockInputStreamProxy.read(ECBlockInputStreamProxy.java:163) at org.apache.hadoop.ozone.client.io.ECBlockInputStreamProxy.read(ECBlockInputStreamProxy.java:148) at org.apache.hadoop.hdds.scm.storage.ByteArrayReader.readFromBlock(ByteArrayReader.java:57) at org.apache.hadoop.hdds.scm.storage.MultipartInputStream.readWithStrategy(MultipartInputStream.java:96) at org.apache.hadoop.hdds.scm.storage.ExtendedInputStream.read(ExtendedInputStream.java:54) at org.apache.hadoop.ozone.client.io.OzoneInputStream.read(OzoneInputStream.java:56) at java.base/java.io.InputStream.read(InputStream.java:205) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:94) at org.apache.hadoop.ozone.shell.keys.GetKeyHandler.execute(GetKeyHandler.java:88)
Attachments
Issue Links
- is caused by
-
HDDS-7231 Integrate the GetKeyInfo API to key read flows
- Resolved
- links to