Skip to content

Conversation

@flaneur2020
Copy link
Member

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

On accessing the tables info by admin api, I got a UnknownShareEndpoint error like this:

curl localhost:8080/v1/tenants/tnh2xmxsf/tables
Code: 2715, Text = UnknownShareEndpoint from "default" to "tncy3exa1".

Afeter investigation, I found that "default" tenant tries to access a shared database from tenant tncy3exa1, but the share endpoint endpoint is not set. A bad config on one database made all the databases infomation can not be shown at all.

This PR added a warnings field in the list_tenant_tables_handler, to swallow the errors but display them in the warnings field. So users can still get the most of table infomations and warning message without lose all the things by one bad config.

@vercel
Copy link

vercel bot commented Apr 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
databend ⬜️ Ignored (Inspect) Apr 6, 2023 9:48am

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Apr 6, 2023
@flaneur2020 flaneur2020 force-pushed the check-tables-infor branch 3 times, most recently from d4a8646 to 76e7040 Compare April 6, 2023 09:46
@BohuTANG BohuTANG requested a review from lichuang April 6, 2023 11:18
@BohuTANG BohuTANG merged commit de3142d into databendlabs:main Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix this PR patches a bug in codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants