Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2401

FullUpdateInitializer should do a single fetch from HMS instead of 1 per task

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • Sentry
    • None

    Description

      This is an optimization ticket. Currently the way we do fetch is

      1. Get all database names from HMS. Create a Db Task for each database name. HMS Request = 1.
      2. For each database task
        1. Get all database objects from HMS
        2. Get all table names, for each database
        3. Create a table task for "maxTablesPerCall" tables
      3. For each table task
        1. For each table task get all table objects
        2. For each "maxTablesPerCall" tables fetched, get partition names
        3. For each ""maxTablesPerCall" tables fetched, created partition tasks for "maxPartitionsPerCall" partitions
      4. For each partition task
        1. Get all partition objects for, database, table, and list of partition names

      Instead of splitting connecting to HMS and getting bits of information, it is better to get them all in a single request

      Attachments

        Activity

          People

            arjunmishra13 Arjun Mishra
            arjunmishra13 Arjun Mishra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: