question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lost Block for file

See original GitHub issue

Alluxio 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jiacheliu3commented, Jun 10, 2020

@ggezer Thanks so much for the investigation!

0reactions
ggezercommented, Jun 9, 2020

Based on trace analysis this issue is due to missing this fix https://github.com/Alluxio/alluxio/pull/10901 in used version.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found