oceanbase / oceanbase/seekdb

Add regression test or check for embedded mode

Open
#357 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dima type: task
Dominant language
C++
Stars
2.9k
Forks
339
Avg merge
1d 19h
Merged PRs (30d)
52

Description

Description

During the 1.2.0 release, compiling in embedded mode and running the seekdb_test program failed. The cause is that the metadata record directory meta.db hardcodes the path "./store". In embedded mode, the working directory of the seekdb kernel changes from seekdb.db to the current Python directory, causing meta.db to be inaccessible at runtime.

Steps to Reproduce

Refer to the documentation for reproduction steps: https://yuque.antfin.com/g/wangyunlai....

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproduction documentation, then inspect embedded-mode handling and the seekdb_test program. Reproduce the failure and trace how the meta.db path is resolved when the working directory changes from seekdb.db to the current Python directory. Done means a regression test or check reliably catches the inaccessible metadata record directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.