Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on placement caches from DROP #6401

Closed
wants to merge 1 commit into from

Commits on Oct 6, 2022

  1. Remove dependency on placement caches from DROP

    When dropping objects, citus_drop_trigger should not depend on the
    validity of the caches for placements as it causes error messages from
    time to time. With this commit we remove the depencency on the validity
    on caches for shard placements.
    
    However, citus_drop_trigger still depends on WorkerNodeCache in 3
    different codepaths listed below:
    
    - master_remove_distributed_table_metadata_from_workers
     -> MasterRemoveDistributedTableMetadataFromWorkers
      -> SendCommandToWorkersWithMetadata
       -> SendCommandToMetadataWorkersParams
        -> TargetWorkerSetNodeList
         -> ActivePrimaryNonCoordinatorNodeList
          -> FilterActiveNodeListFunc
           -> GetWorkerNodeHash
    
    - citus_drop_all_shards
     -> DropShards
      -> DropTaskList
       -> ShardPlacementListIncludingOrphanedPlacementsViaCatalog
        -> LookupNodeForGroup
         -> PrepareWorkerNodeCache
    
    - master_remove_partition_metadata
     -> DeleteColocationGroupIfNoTablesBelong
      -> DeleteColocationGroup
       -> SyncDeleteColocationGroupToNodes
        -> SendCommandToWorkersWithMetadataViaSuperUser
         -> SendCommandToMetadataWorkersParams
          -> TargetWorkerSetNodeList
           -> ActivePrimaryNonCoordinatorNodeList
            -> FilterActiveNodeListFunc
             -> GetWorkerNodeHash
    hanefi committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    e8d698d View commit details
    Browse the repository at this point in the history