-
Notifications
You must be signed in to change notification settings - Fork 66
block user accessing importing tables by RENAME TABLE #544
Comments
I have looked into this issue a bit, there are pros and cons for both of the two solutions:
|
actually table locking is not sufficient to protect against Lightning failing 🤔. When Lightning crash, the session holding the lock will be broken and the other sessions will be able to access the inconsistent table. |
Yes, but I think this is a feature rather than an issue? If lightning exited abnormally, we should allow the user to do something either by manually do some query to check the table status or just delete the table as a cleanup. |
Consider another scenario where data is imported in batches. If concurrent import is required between batches, how to support it? |
Feature Request
Is your feature request related to a problem? Please describe:
When lightning is doing its job, user still can access importing tables, so he may see non-consistent data or interfere checksum processing.
Describe the feature you'd like:
using RENAME TABLE to hide importing tables, both in cluster initiation and online importing scenarios. In order to handle lightning not gracefullly exit, we might save recoving renaming SQLs to a table so user could copy-paste it 😂
Describe alternatives you've considered:
enable-lock-tables
in configTeachability, Documentation, Adoption, Optimization:
The text was updated successfully, but these errors were encountered: