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

Check if the indexes are correct #5386

Closed
wants to merge 2 commits into from

Conversation

zorancv
Copy link
Contributor

@zorancv zorancv commented May 3, 2024

Somewhat related to the #5140 . Check all the attribute indexes at subgraph start and recreate the invalid ones.

@zorancv zorancv self-assigned this May 3, 2024
@zorancv zorancv marked this pull request as draft May 3, 2024 13:16
@zorancv zorancv changed the base branch from master to zoran/graphman-copy May 3, 2024 13:30
@zorancv zorancv force-pushed the zoran/graphman-copy branch 2 times, most recently from 53067fa to 423724b Compare May 3, 2024 14:09
@zorancv zorancv force-pushed the zoran/graphman-copy-init branch 6 times, most recently from 88f6a1d to 7ae9393 Compare May 7, 2024 14:46
assert!(ii_vec.len() <= 1);
// Check if the index is valid. If either isvalid or isready flag of pg_index table
// isn't true, drop it and recreate it.
if ii_vec.len() == 0 || !ii_vec[0].isvalid || !ii_vec[0].isready {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Criteria for recreating the index is that either inisvalid or indisready is false from pg_index table. If the respective row is completely missing I'd skip dropping the old index and proceed with creating the new one directly. WDYT @lutter

@zorancv zorancv marked this pull request as ready for review May 7, 2024 15:18
@zorancv zorancv force-pushed the zoran/graphman-copy-init branch 5 times, most recently from a63587a to 82da179 Compare May 8, 2024 14:25
@fordN fordN requested a review from lutter May 14, 2024 15:44
@zorancv zorancv marked this pull request as draft May 16, 2024 08:53
@zorancv zorancv closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant