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.

Formatted master incorrectly accepts blocks created before the format due to blockID(containerID) clash

See original GitHub issue

Alluxio Version: What version of Alluxio are you using?

Describe the bug alluxio master will generate block container id from 0, after master format and restart without worker format, the old worker will report its block to alluxio master, not sure the master will accept the block by accident.

To Reproduce Introduced in https://github.com/Alluxio/alluxio/pull/14006#issuecomment-913334686

The new master has generated some blocks with container IDs starting from 0. Then the worker from the previous cluster registers with old blocks (created with the old master, with container ID starting from 0). If you are unlucky, a block on this old worker may have old blockID 0 and the new blockID 0 has been allocated to a totally irrelevant file. The new master, in this case, will mistakenly think this blockID is recognized and accepts this copy from the old worker.

Then if the block lengths do not match (the new 0 vs old 0), the master will throw the error referred in the link.

What’s worse, if the block lengths DO match, the master will think this copy belongs to this totally irrelevant file. Then the Alluxio data is messed up without you noticing!

Expected behavior A clear and concise description of what you expected to happen.

Urgency HIGH

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
jiacheliu3commented, Mar 2, 2022

@HelloHorizon @ZhuTopher The design doc has passed review and #14258 is in progress.

1reaction
ZhuTophercommented, Mar 1, 2022

@HelloHorizon I re-reviewed the design doc on Dec. 14, 2021. Not sure if the doc has been changed since then or not. I believe Jiacheng wanted to take another look at it still?

I haven’t re-reviewed the corresponding PR #14258 since my initial pass, but Jiacheng has been making progress with change requests there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Block formatting context - Developer guides - MDN Web Docs
A block formatting context is created by at least one of the following: The root element of the document ( <html> ). Floats...
Read more >
avocado Documentation - Read the Docs
Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native...
Read more >
Formatted master incorrectly accepts blocks created before the ...
Formatted master incorrectly accepts blocks created before the format due to blockID(containerID) clash.
Read more >
Header (saved as a Building Block) formats incorrectly between
The basic problem is that a saved header in my header gallery is showing up differently from one document to the next (formatting...
Read more >
Blockchain Facts: What Is It, How It Works, and How It Can Be ...
As a database, a blockchain stores information electronically in digital format. Blockchains are best known for their crucial role in cryptocurrency systems ...
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