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

All createViewAddChildLink requests will go to the same region of SYSTEM.CHILD_LINK

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.0.0, 4.15.0
    • 5.1.0, 4.16.0
    • None
    • None

    Description

      Currently, since there is no split policy defined for SYSTEM.CHILD_LINK, it can split by default.

      If SYSTEM.CHILD_LINK does split, then when the client invokes ConnectionQueryServices.childLinkMetaDataCoprocessorExec(), we always invoke the endpoint on the first region that contains linking rows for that parent (see this).

      Thus, no matter which region would actually contain the parent→child link, the first region is the one that has to always service the request and its RS finally issues the mutation to the correct region. Note that the mutateRowsWithLocks() call inside ChildLinkMetaDataEndpoint.createViewAddChildLink() doesn’t fail even if the region doesn’t contain that row since we pass in an empty list for rowsToLock.

      During view creation, this request will lead to a Put of just 1 row and we have all the information to be able to pass in the exact row key instead of just the prefix (parent tenantId, parent schema, parent name). This should distribute load to all regions of SYSTEM.CHILD_LINK.

      Attachments

        1. PHOENIX-6126.4.x.000.patch
          9 kB
          Viraj Jasani
        2. PHOENIX-6126.master.000.patch
          9 kB
          Viraj Jasani

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              ckulkarni Chinmay Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: