cxzl25 opened a new pull request, #7063:
URL: https://github.com/apache/hadoop/pull/7063

   ### Description of PR
   
   There are nested calls, causing the MAX_PACKET_SIZE of PacketReceiver to be 
0.
   
   ```java
   java.io.IOException: Incorrect value for packet payload size: 1014776
       at 
org.apache.hadoop.hdfs.protocol.datatransfer.PacketReceiver.doRead(PacketReceiver.java:167)
       at 
org.apache.hadoop.hdfs.protocol.datatransfer.PacketReceiver.receiveNextPacket(PacketReceiver.java:112)
       at 
org.apache.hadoop.hdfs.client.impl.BlockReaderRemote.readNextPacket(BlockReaderRemote.java:187)
       at 
org.apache.hadoop.hdfs.client.impl.BlockReaderRemote.read(BlockReaderRemote.java:146)
       at 
org.apache.hadoop.hdfs.ByteArrayStrategy.readFromBlock(ReaderStrategy.java:118)
       at 
org.apache.hadoop.hdfs.DFSInputStream.readBuffer(DFSInputStream.java:789)
       at 
org.apache.hadoop.hdfs.DFSInputStream.readWithStrategy(DFSInputStream.java:855)
       at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:919)
       at java.base/java.io.DataInputStream.read(DataInputStream.java:158)
       at java.base/java.io.InputStream.transferTo(InputStream.java:796)
       at java.base/java.nio.file.Files.copy(Files.java:3151)
       at 
java.base/sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:216)
       at 
java.base/sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:212)
       at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
   
   
       at 
org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1319)
       at org.apache.hadoop.conf.Configuration.getInt(Configuration.java:1545)
       at 
org.apache.hadoop.hdfs.protocol.datatransfer.PacketReceiver.<clinit>(PacketReceiver.java:82)
       at 
org.apache.hadoop.hdfs.client.impl.BlockReaderRemote.<init>(BlockReaderRemote.java:101)
 
   ```
   
   
   ### How was this patch tested?
   
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to