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

one of Masters crashed when we tried to delete YSQL database #2665

Closed
verzlo opened this issue Oct 21, 2019 · 4 comments
Closed

one of Masters crashed when we tried to delete YSQL database #2665

verzlo opened this issue Oct 21, 2019 · 4 comments
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) community/request Issues created by external users kind/bug This issue is a bug

Comments

@verzlo
Copy link

verzlo commented Oct 21, 2019

from INFO log:
I1021 00:20:10.927984 5779 catalog_manager.cc:3998] Servicing DeleteNamespace request from 172.26.65.57:42762: namespace { id: "0000406e000030008000000000000000" name: "cms" } database_type: YQL_DATABASE_PGSQL
I1021 00:20:10.932032 5779 catalog_manager_ent.cc:1356] Deleting CDC streams for tables:
F1021 00:20:10.964869 5779 catalog_manager.cc:4133] Check failed: FindPtrOrNull(namespace_names_map_, database->name()) == nullptr YSQL database name should not be included in namespace_names_map_. If included, its name must be removed from map here when dropping

from ERROR /FATAL log:
Log file created at: 2019/10/21 00:20:10
Running on machine: klxcasst2.kiev.cqg
Application fingerprint: version 2.0.1.0 build 19 revision 6607435 build_type RELEASE built at 04 Oct 2019 22:26:27 UTC
Running duration (h:mm:ss): 50:06:16
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F1021 00:20:10.964869 5779 catalog_manager.cc:4133] Check failed: FindPtrOrNull(namespace_names_map_, database->name()) == nullptr YSQL database name should not be included in namespace_names_map_. If included, its name must be removed from map here when dropping

@yugabyte-ci yugabyte-ci added the community/request Issues created by external users label Oct 21, 2019
@ndeodhar
Copy link
Contributor

@verzlo Quick question: Do you have a CQL keyspace with the same name?

@ndeodhar ndeodhar added area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug labels Oct 21, 2019
@verzlo
Copy link
Author

verzlo commented Oct 21, 2019

yes we we do have CQL keyspace with same name ..

@ndeodhar
Copy link
Contributor

Thanks for confirming, @verzlo.

@nocaway This CHECK is incorrect: CHECK(FindPtrOrNull(namespace_names_map_, database->name()) == nullptr) since we can also have a CQL keyspace with the same name.
Also, as a general rule of thumb, lets avoid CHECK in master and use DCHECK.

@ndeodhar ndeodhar assigned OlegLoginov and unassigned nocaway Oct 25, 2019
OlegLoginov added a commit that referenced this issue Nov 1, 2019
…abase

Summary: Removed invalid check in the yb::master::CatalogManager::DeleteYsqlDatabase method.

Test Plan: ybd --java-test org.yb.multiapi.TestMultiAPI

Reviewers: alex, neha

Reviewed By: neha

Subscribers: dmitry, yql, bogdan

Differential Revision: https://phabricator.dev.yugabyte.com/D7464
@OlegLoginov
Copy link
Contributor

Fixed by the commit above.

spolitov added a commit that referenced this issue Nov 1, 2019
…YSQL database"

Summary: This reverts commit 6158182.

Test Plan: Jenkins

Reviewers: timur, alex, dmitry, oleg

Reviewed By: oleg

Subscribers: ybase, bogdan

Differential Revision: https://phabricator.dev.yugabyte.com/D7503
OlegLoginov added a commit that referenced this issue Nov 8, 2019
…abase

Summary: Removed invalid check in the yb::master::CatalogManager::DeleteYsqlDatabase method.

Test Plan: ybd --java-test org.yb.multiapi.TestMultiAPI

Reviewers: neha, alex

Reviewed By: neha, alex

Subscribers: mikhail, dmitry, yql, bogdan

Differential Revision: https://phabricator.dev.yugabyte.com/D7464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) community/request Issues created by external users kind/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

5 participants