-
Notifications
You must be signed in to change notification settings - Fork 715
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
Add ddst_dict_init api support for rocksdb dd #1297
base: fb-mysql-8.0.28
Are you sure you want to change the base?
Add ddst_dict_init api support for rocksdb dd #1297
Conversation
66fa355
to
4fddbc6
Compare
storage/rocksdb/ha_rocksdb.cc
Outdated
|
||
static Plugin_tablespace dd_space(rocksdb_dd_space_name, "", "", "", | ||
rocksdb_hton_name); | ||
tablespaces->push_back(&dd_space); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, tablespaces are purely InnoDB concept. So nothing should be added here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think DD expect mysql namespace always exists.. Let me find related code in a while..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current DD layer assumes it does, but I am patching it out in my prototype.
I am concerned about pretending something exists when MyRocks does not even support the concept of it.
88b36f4
to
7897e70
Compare
storage/rocksdb/rdb_native_dd.h
Outdated
|
||
namespace dd { | ||
class Table; | ||
} | ||
|
||
namespace myrocks { | ||
|
||
constexpr const char *rocksdb_dd_space_name = "mysql"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constexpr const char *rocksdb_dd_space_name = "mysql"; | |
constexpr const char rocksdb_dd_space_name[] = "mysql"; |
The pointer version works, but its sizeof is 8, which is very annoying to find
Do we still need this diff. Sounds like we are not adding the. dd_space in the ddst_dict_init function now. |
As with the rest of the current diffs, it's hard to say, as the code is too incomplete to run. IMHO we can hold until it becomes clear. |
@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@laurynas-biveinis , according to previous conversation, we may still need this mysql tablespace. Currently #1319 will fail if there is testcase using rocksdb DD. |
7897e70
to
8dcbca4
Compare
@sunshine-Chun has updated the pull request. You must reimport the pull request before landing. |
@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
8dcbca4
to
4d98701
Compare
@sunshine-Chun has updated the pull request. You must reimport the pull request before landing. |
4d98701
to
0593d65
Compare
@sunshine-Chun has updated the pull request. You must reimport the pull request before landing. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
0593d65
to
0f1e9a8
Compare
@sunshine-Chun has updated the pull request. You must reimport the pull request before landing. |
@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@sunshine-Chun , @luqun, It is true that we'll need the mysql tablespace. But, in the current prototype it is InnoDB that sets it up, thus at this point I am not comfortable to committing to RocksDB creating it. We could quickly merge a PR for |
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 GitHub Author: Chun Ni <[email protected]> Test Plan: CI Reviewers: luqun Subscribers: [email protected] Differential Revision: https://phabricator.intern.facebook.com/D46700996 Tags: accept2ship
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
@sunshine-Chun , please close this PR |
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook/mysql-5.6#1297 Test Plan: CI Differential Revision: D46700996 fbshipit-source-id: fbb80035b54cc068c845e63fe6903c8488fce1d3
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook/mysql-5.6#1297 Test Plan: CI Differential Revision: D46700996 fbshipit-source-id: fbb80035b54cc068c845e63fe6903c8488fce1d3
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init handler api support for rocksdb dd Currently rocksdb ddst_dict_init() doesn't add any rocksdb specific tables and tablespace during ddse initialize. Pull Request resolved: facebook#1297 Test Plan: CI Differential Revision: D46700996
Summary: Add ddst_dict_init api support for rocksdb dd
Test Plan: Test locally, not crush....
Reviewers:
Subscribers:
Tasks:
Tags: