Class StoreDeletionValidationUtils

java.lang.Object
com.linkedin.venice.controller.StoreDeletionValidationUtils

public class StoreDeletionValidationUtils extends Object
Utility class for Venice store deletion validation operations. Contains methods to validate store deletion and other store-related validation logic. This class provides a clean separation of store validation logic from the main VeniceHelixAdmin class, making it easier to test and maintain.
  • Method Details

    • validateStoreDeleted

      public static StoreDeletedValidation validateStoreDeleted(VeniceHelixAdmin admin, String clusterName, String storeName)
      Validates that a store has been completely deleted from the Venice cluster. This method performs comprehensive checks across multiple subsystems to ensure no lingering resources remain that would prevent safe store recreation. Resources checked: 1. Store configuration in ZooKeeper 2. Store metadata in store repository 3. System stores (META_STORE and DAVINCI_PUSH_STATUS_STORE) 4. Helix resources 5. Kafka topics (version, RT, and system store topics)
      Parameters:
      admin - the Venice admin instance for performing validation operations
      clusterName - the name of the cluster to check
      storeName - the name of the store to validate deletion for
      Returns:
      StoreDeletedValidation indicating whether the store is fully deleted or what resources remain
    • isStoreRelatedTopic

      public static boolean isStoreRelatedTopic(PubSubTopic topic, String storeName)
      Determines if a PubSub topic is related to the specified store. This includes version topics, real-time topics, view topics, and system store topics. Uses PubSubTopic's built-in store name validation for better accuracy.
      Parameters:
      topic - the PubSub topic to check
      storeName - the name of the store
      Returns:
      true if the topic is related to the store, false otherwise