You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon the initial startup of vttablet, the function reloadRulesFromDatabase in databaseCustomRule is not invoked. Consequently, if SQL queries are received at this point, they will be executed directly due to the absence of loaded filter rules. This situation can lead to potential errors as the filter rules are not yet in place to regulate SQL query execution.
Proposal
To prevent such errors, it is imperative to adjust the initialization process to load the filter rules before the queryEngine starts serving requests. By ensuring the filter rules are loaded beforehand, we can safeguard against unauthorized SQL query execution and maintain data integrity.
Reproduction Steps
create a filter
shutdown wescale (vtgate & vttablet)
start wescale again
execute any SQL that should trigger the filter created in step (1). You will see filter is not triggered because filter is not loaded in vttablet's memory.
wait for 30s
execute the same SQL again, the filter will be triggered.
Binary Version
all versions
Operating System and Environment details
all
Log Fragments
The text was updated successfully, but these errors were encountered:
Overview of the Issue
Background
Upon the initial startup of vttablet, the function reloadRulesFromDatabase in databaseCustomRule is not invoked. Consequently, if SQL queries are received at this point, they will be executed directly due to the absence of loaded filter rules. This situation can lead to potential errors as the filter rules are not yet in place to regulate SQL query execution.
Proposal
To prevent such errors, it is imperative to adjust the initialization process to load the filter rules before the queryEngine starts serving requests. By ensuring the filter rules are loaded beforehand, we can safeguard against unauthorized SQL query execution and maintain data integrity.
Reproduction Steps
Binary Version
Operating System and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered: