Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4138

Create a hard limit on number of indexes per table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.12.0
    • None
    • None

    Description

      There should be a config parameter to impose a hard limit on number of indexes per table. There is a SQL Exception https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java#L260 , but it gets triggered on the server side (https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java#L1589) .

      We need a client side limit that can be configured via Phoenix config parameter. Something like if user create more than lets say 30 indexes per table, it would not allow more index creation for the that specific table.

      Attachments

        1. PHOENIX-4138.patch
          4 kB
          churro morales
        2. PHOENIX-4138.v1.patch
          7 kB
          churro morales
        3. PHOENIX-4138.v2.patch
          10 kB
          churro morales
        4. PHOENIX-4138_v3.patch
          10 kB
          James R. Taylor

        Activity

          People

            churromorales churro morales
            rahulshrivastava Rahul Shrivastava
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified