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

Secondary index configuration is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 4.10.0
    • None
    • None

    Description

      IndexRpcScheduler allocates some handler threads and uses a higher priority for RPCs. The corresponding IndexRpcController is not used by default as it is, but used through ServerRpcControllerFactory that we configure from Ambari by default which sets the priority of the outgoing RPCs to either metadata priority, or the index priority.

      However, after reading code of IndexRpcController / ServerRpcController it seems that the IndexRPCController DOES NOT look at whether the outgoing RPC is for an Index table or not. It just sets ALL rpc priorities to be the index priority. The intention seems to be the case that ONLY on servers, we configure ServerRpcControllerFactory, and with clients we NEVER configure ServerRpcControllerFactory, but instead use ClientRpcControllerFactory. We configure ServerRpcControllerFactory from Ambari, which in affect makes it so that ALL rpcs from Phoenix are only handled by the index handlers by default. It means all deadlock cases are still there.

      The documentation in https://phoenix.apache.org/secondary_indexing.html is also wrong in this sense. It does not talk about server side / client side. Plus this way of configuring different values is not how HBase configuration is deployed. We cannot have the configuration show the ServerRpcControllerFactory even only for server nodes, because the clients running on those nodes will also see the wrong values.

      Attachments

        1. indexlogging.patch
          7 kB
          Samarth Jain
        2. PHOENIX-3360-v4.PATCH
          2 kB
          William Yang
        3. ConfCP.java
          2 kB
          William Yang
        4. PHOENIX-3360-v3.PATCH
          5 kB
          William Yang
        5. PHOENIX-3360-v2.PATCH
          4 kB
          William Yang
        6. PHOENIX-3360.patch
          2 kB
          Rajeshbabu Chintaguntla

        Issue Links

          Activity

            People

              yhxx511 William Yang
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: