Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19556

Add guardrail to block DDL/DCL queries and replace alter_table_enabled guardrail

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Needs Committer
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Feature/Guardrails
    • None
    • Operability
    • Normal
    • All
    • None
    • Hide

      ci

      Show
      ci

    Description

      Sometimes we want to block DDL/DCL queries to stop new schemas being created or roles created. (e.g. when doing live-upgrade)

      For DDL guardrail current implementation won't block the query if it's no-op (e.g. CREATE TABLE...IF NOT EXISTS, but table already exists, etc. The guardrail check is added in apply() right after all the existence check)

      I don't have preference on either block every DDL query or check whether if it's no-op here. Just we have some users always run CREATE..IF NOT EXISTS.. at startup, which is no-op but will be blocked by this guardrail and failed to start.

       

      4.1 PR: https://github.com/apache/cassandra/pull/3248

      trunk PR: https://github.com/apache/cassandra/pull/3275

       

      Attachments

        Issue Links

          Activity

            People

              yukei Yuqi Yan
              yukei Yuqi Yan
              Yuqi Yan
              Stefan Miklosovic
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m