Skip to content

Conversation

@sunshine-Chun
Copy link
Contributor

Summary: Add ddst_dict_init api support for rocksdb dd

Test Plan: Test locally, not crush....

Reviewers:

Subscribers:

Tasks:

Tags:

@sunshine-Chun sunshine-Chun force-pushed the fb-mysql-8.0.28-dd-api2 branch from 66fa355 to 4fddbc6 Compare April 25, 2023 18:55

static Plugin_tablespace dd_space(rocksdb_dd_space_name, "", "", "",
rocksdb_hton_name);
tablespaces->push_back(&dd_space);
Copy link
Contributor

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?

Copy link
Contributor

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..

Copy link
Contributor

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.

@sunshine-Chun sunshine-Chun force-pushed the fb-mysql-8.0.28-dd-api2 branch 2 times, most recently from 88b36f4 to 7897e70 Compare April 28, 2023 23:12

namespace myrocks {

constexpr const char *rocksdb_dd_space_name = "mysql";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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

@sunshine-Chun
Copy link
Contributor Author

Do we still need this diff. Sounds like we are not adding the. dd_space in the ddst_dict_init function now.

@laurynas-biveinis
Copy link
Contributor

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.

@facebook-github-bot
Copy link

@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@luqun
Copy link
Contributor

luqun commented Jun 14, 2023

@laurynas-biveinis , according to previous conversation, we may still need this mysql tablespace. Currently #1319 will fail if there is testcase using rocksdb DD.

@sunshine-Chun sunshine-Chun force-pushed the fb-mysql-8.0.28-dd-api2 branch from 7897e70 to 8dcbca4 Compare June 14, 2023 17:44
@facebook-github-bot
Copy link

@sunshine-Chun has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link

@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@sunshine-Chun sunshine-Chun force-pushed the fb-mysql-8.0.28-dd-api2 branch from 8dcbca4 to 4d98701 Compare June 14, 2023 17:53
@facebook-github-bot
Copy link

@sunshine-Chun has updated the pull request. You must reimport the pull request before landing.

@sunshine-Chun sunshine-Chun force-pushed the fb-mysql-8.0.28-dd-api2 branch from 4d98701 to 0593d65 Compare June 14, 2023 17:58
@facebook-github-bot
Copy link

@sunshine-Chun has updated the pull request. You must reimport the pull request before landing.

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@sunshine-Chun sunshine-Chun force-pushed the fb-mysql-8.0.28-dd-api2 branch from 0593d65 to 0f1e9a8 Compare June 14, 2023 17:59
@facebook-github-bot
Copy link

@sunshine-Chun has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link

@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@laurynas-biveinis
Copy link
Contributor

@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 ddse_dict_init, which would be mostly empty, and leave the tablespace for later.

@laurynas-biveinis
Copy link
Contributor

@sunshine-Chun , please close this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants