Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiffDealStates at nv22 upgrade epoch #1291

Open
s0nik42 opened this issue Apr 24, 2024 · 4 comments
Open

DiffDealStates at nv22 upgrade epoch #1291

s0nik42 opened this issue Apr 24, 2024 · 4 comments
Labels
kind/bug Kind: Bug

Comments

@s0nik42
Copy link
Contributor

s0nik42 commented Apr 24, 2024

Describe the bug:

at epoch 3855361 DiffDealStates went through the "slow Array comparaison" as actors are different."

if requiresLegacyDiffing(pre, cur, preOpts, curOpts) {
		log.Warn("actor AMT opts differ, running slower generic array diff ", "preCID ", pre.Code(), "curCID ", cur.Code())
		if err := diff.CompareArray(preP.array(), curP.array(), diffContainer); err != nil {
			return nil, fmt.Errorf("diffing deal states: %w", err)
		}
		return diffContainer.Results, nil
	}

But the Diff detect 57M+ modifications : {"added":6,"modified":57377092,"removed":51},

Steps to Reproduce:

call Diff on tipset : 3855361 and 3855362

Lily Version: v0.18.0

Need a quick patch as we have just a few hours before our node GC, can test in a few hours if needed.

Thank you for your support.

@s0nik42 s0nik42 added the kind/bug Kind: Bug label Apr 24, 2024
@s0nik42
Copy link
Contributor Author

s0nik42 commented Apr 24, 2024

@ze42 @FlorianRuen

@Terryhung
Copy link
Collaborator

Hi @s0nik42,
Thank you for identifying this issue. In fact, having so many differences is to be expected. Otherwise, we could consider adding a condition to skip if there are too many differences. Otherwise, this data might not be meaningful.

@s0nik42
Copy link
Contributor Author

s0nik42 commented Apr 25, 2024

Thanks,
can you highlight why its expected ? If I manually analyze Filecoin.StateMArketDeals, I only see ~600 differences.

@Terryhung
Copy link
Collaborator

Because in those epoch, the network was during the migration to nv22. Therefore, most of them will be marked as changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug
Projects
None yet
Development

No branches or pull requests

2 participants