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

Fix WriteBatchWithIndex::GetFromBatchAndDB not allowing StackableDB #2881

Closed
wants to merge 1 commit into from

Conversation

yiwu-arbug
Copy link
Contributor

Summary:
#2850 disallow calling WriteBatchWithIndex::GetFromBatchAndDB() with StackableDB, which break MyRocks usage. The fix is simply static cast db->GetRootDB() to DBImpl to access internal API. This is safe because ReadCallback is only used inside TransactionDB and the pointer it provide is a DBImpl.

Test Plan:
Under rocksdb repo

make all check

Under myrocks repo

toots/mysqltest.sh --suite=rocksdb rocksdb.trx_info_rpl

@facebook-github-bot
Copy link
Contributor

@yiwu-arbug has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@yiwu-arbug has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit to facebook/mysql-5.6 that referenced this pull request Sep 14, 2017
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
spetrunia added a commit to MariaDB/mergetrees that referenced this pull request Sep 15, 2017
commit 184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c
Author: Abhinav Sharma <abhinavsharma@fb.com>
Date:   Thu Sep 14 11:40:08 2017 -0700

    Bump rocksdb submodule

    Summary:
    Bump rocksdb to include the fix for rocksdb.trx_info_rpl

    The bug was introduced in: facebook/rocksdb#2850
    Fixed in: facebook/rocksdb#2881

    update-submodule: rocksdb

    Reviewed By: lth

    Differential Revision: D5834658

    fbshipit-source-id: d1551bf
@yiwu-arbug yiwu-arbug deleted the txn_root branch October 17, 2017 16:19
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 26, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 26, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 27, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 27, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 30, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 31, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 31, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Nov 1, 2017
Upstream commit ID : fb-mysql-5.6.35/184a4a2d82f4f6f3cbcb1015bcdb32bebe73315c

Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: d1551bf
facebook-github-bot pushed a commit to facebook/mysql-5.6 that referenced this pull request Dec 23, 2019
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: f731b47
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 12, 2020
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: f731b47
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 9, 2020
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: f731b47
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 16, 2020
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: f731b47
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Oct 5, 2020
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: f731b47
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Nov 11, 2020
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lth

Differential Revision: D5834658

fbshipit-source-id: f731b47
facebook-github-bot pushed a commit to facebook/mysql-5.6 that referenced this pull request Mar 8, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 16, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 17, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 30, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 30, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 31, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 1, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 2, 2021
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658 (facebook@18889a6)

fbshipit-source-id: 22625fd3ff2
hermanlee pushed a commit to facebook/mysql-5.6 that referenced this pull request Jan 10, 2022
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jan 17, 2022
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 20, 2022
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 23, 2022
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
laurynas-biveinis pushed a commit to laurynas-biveinis/mysql-5.6 that referenced this pull request Aug 11, 2022
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Mar 25, 2023
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Mar 28, 2023
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 1, 2023
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 14, 2023
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
Summary:
Bump rocksdb to include the fix for rocksdb.trx_info_rpl

The bug was introduced in: facebook/rocksdb#2850
Fixed in: facebook/rocksdb#2881

@update-submodule: rocksdb

Reviewed By: lloyd

Differential Revision: D5834658
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.

None yet

3 participants