-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Better error message when removing used druid datasource #1141
Comments
I'll try to work on this today. |
It's not so easy for me.
But result is that I'm getting as many warning as slice count :> I'm looking deeper into SQL Alchemy ORM (this is trigger on cascade delete) |
Please note that #1078 will change things quite a bit around this code. The correct fix i think would be to add a signal handler for the deletion of SqlaTable or DruidDatasource and block the deletion if there are slices. We are losing the FK so we cannot do that in sqlalchemy. |
OK. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
When I'm removing druid datasource which have some slice added I'm getting this error message:
General Error <class 'UnboundLocalError'>
I think it should be something more human readable.
Full stacktrace.
The text was updated successfully, but these errors were encountered: