8000 Fix memory index multiple bugs when using vfs by Ma-cat · Pull Request #1561 · infiniflow/infinity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix memory index multiple bugs when using vfs #1561

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

Merged
merged 10 commits into from
Aug 2, 2024

Conversation

Ma-cat
Copy link
Contributor
@Ma-cat Ma-cat commented Jul 30, 2024

What problem does this PR solve?

  • fix memory index multiple bugs when using vfs
  • add unit tests with parameters for memory index
  • add unit test for persistence manager

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • Refactoring
  • Test cases

@Ma-cat Ma-cat added the ci PR can be test label Jul 30, 2024
PersistenceManager *pm = InfinityContext::instance().persistence_manager();
String posting_file = posting_file_;
if (nullptr != pm) {
posting_file = pm->GetObjCache(posting_file);
Copy link
Member

Choose a reason for hiding this comment

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

Why GetObjCache is needed here?

@@ -44,6 +44,9 @@ class BaseTestWithParam : public std::conditional_t<std::is_same_v<T, void>, ::t

void SetUp() override {}
void TearDown() override {}
public:
static constexpr const char* NULL_CONFIG_PATH = "";
static constexpr const char* CONFIG_PATH = "test/data/config/test_vfs.toml";
Copy link
Member

Choose a reason for hiding this comment

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

VFS_CONFIG_PATH looks better.

)
);

TEST_P(MemoryIndexerTest, Insert) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we check if persistence_manager is clean at the end of the test?

@yuzhichang yuzhichang merged commit 92f673a into infiniflow:main Aug 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci PR can be test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0