Lost Block for file
See original GitHub issueAlluxio Version: 2.1.1
Describe the bug When the file is read, no BlockInfo is found and an exception is thrown.
java.io.IOException: No BlockInfo for block(id=12700352512) of file(id=12717129727, path=/blah)
at alluxio.client.file.FileInStream.updateStream(FileInStream.java:336)
at alluxio.client.file.FileInStream.read(FileInStream.java:149)
at alluxio.hadoop.HdfsFileInputStream.read(HdfsFileInputStream.java:97)
at java.io.FilterInputStream.read(FilterInputStream.java:94)
alluxio fs stat /blah
produces the following exception:
2020-03-19 16:10:55,381 DEBUG BlockMasterClientServiceHandler - Enter: GetBlockInfo: blockId=33554432, options=
2020-03-19 16:10:55,381 DEBUG BlockMasterClientServiceHandler - Exit (Error): GetBlockInfo: blockId=33554432, options=
alluxio.exception.BlockInfoException: BlockMeta not found for blockId 33554432
at alluxio.master.block.DefaultBlockMaster.lambda$getBlockInfo$1(DefaultBlockMaster.java:711)
at java.util.Optional.orElseThrow(Optional.java:290)
at alluxio.master.block.DefaultBlockMaster.getBlockInfo(DefaultBlockMaster.java:711)
at alluxio.master.block.BlockMasterClientServiceHandler.lambda$getBlockInfo$0(BlockMasterClientServiceHandler.java:69)
at alluxio.RpcUtils.callAndReturn(RpcUtils.java:113)
at alluxio.RpcUtils.call(RpcUtils.java:78)
at alluxio.RpcUtils.call(RpcUtils.java:53)
at alluxio.master.block.BlockMasterClientServiceHandler.getBlockInfo(BlockMasterClientServiceHandler.java:67)
at alluxio.grpc.BlockMasterClientServiceGrpc$MethodHandlers.invoke(BlockMasterClientServiceGrpc.java:761)
at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:172)
at
...omitted
This lost block cannot be recovered by alluxio fs ls -Dalluxio.user.file.metadata.sync.interval=0 /blah
or alluxio fs load -Dalluxio.user.file.metadata.sync.interval=0 /blah
.
To Reproduce NOT CLEAR. This file was in Alluxio for a while then the block was lost.
Expected behavior The file should be able to be reloaded to recover the block.
Or there should at least be an explicit way to manually recover the file from this status.
Urgency MEDIUM
Additional context
HeapBlockStore
is used.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Solved: Best way of handling corrupt or missing blocks?
To identify "corrupt" or "missing" blocks, the command-line command 'hdfs fsck /path/to/file' can be used. Other tools also exist.
Read more >Linked Block Missing File - Rhino for Mac - McNeel Forum
Recently I have started inserting building elevations and to model each in, which I then insert into an assembly file (as per a...
Read more >If your iPhone, iPad, or iPod touch is lost or stolen
File a Theft and Loss claim. If your missing iPhone is covered by AppleCare+ with Theft and Loss, file a claim for an...
Read more >Block-Level File Copying and the Cloud in 2022 - Cloudwards
The concept of block-level file copying is a pretty simple one to understand. When you make a change to a file, rather than...
Read more >hadoop - HDFS Find last known locations of missing blocks
I have the list of files and blocks, is there a way I can show the "last known location" of the blocks (which...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ggezer Thanks so much for the investigation!
Based on trace analysis this issue is due to missing this fix https://github.com/Alluxio/alluxio/pull/10901 in used version.