Ashish Kumar created HDDS-10190:
-----------------------------------
Summary: [hsync] Lease recovery fails when file has just created
without blocks
Key: HDDS-10190
URL: https://issues.apache.org/jira/browse/HDDS-10190
Project: Apache Ozone
Issue Type: Bug
Reporter: Ashish Kumar
Assignee: Ashish Kumar
Steps to reproduce:
# Create file
# Do hsync
# Recover lease
{code:java}
2024-01-23 14:06:21 failed with exception
2024-01-23 14:06:21 java.lang.IndexOutOfBoundsException: Index -1 out of bounds
for length 0
2024-01-23 14:06:21 at
java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
2024-01-23 14:06:21 at
java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
2024-01-23 14:06:21 at
java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
2024-01-23 14:06:21 at
java.base/java.util.Objects.checkIndex(Objects.java:372)
2024-01-23 14:06:21 at java.base/java.util.ArrayList.get(ArrayList.java:459)
2024-01-23 14:06:21 at
org.apache.hadoop.ozone.om.request.file.OMRecoverLeaseRequest.doWork(OMRecoverLeaseRequest.java:258)
2024-01-23 14:06:21 at
org.apache.hadoop.ozone.om.request.file.OMRecoverLeaseRequest.validateAndUpdateCache(OMRecoverLeaseRequest.java:158)
2024-01-23 14:06:21 at
org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.lambda$0(OzoneManagerRequestHandler.java:412)
2024-01-23 14:06:21 at
org.apache.hadoop.util.MetricUtil.captureLatencyNs(MetricUtil.java:45)
2024-01-23 14:06:21 at
org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:408)
2024-01-23 14:06:21 at
org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:559)
2024-01-23 14:06:21 at
org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$1(OzoneManagerStateMachine.java:349)
2024-01-23 14:06:21 at
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
2024-01-23 14:06:21 at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2024-01-23 14:06:21 at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2024-01-23 14:06:21 at java.base/java.lang.Thread.run(Thread.java:829)
2024-01-23 14:06:21 2024-01-23 08:36:21,603 [shutdown-hook-0] INFO
om.OzoneManagerStarter: SHUTDOWN_MSG:{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]