public void removeBootstrapSession(@Nonnull PartitionId partitionId, @Nonnull String bootstrappingNodeId) {
    Objects.requireNonNull(partitionId, "partitionId cannot be null");
    Objects.requireNonNull(bootstrappingNodeId, "bootstrappingNodeId cannot be null");
    validateBootstrapSessionManagerIsRunningOrThrow();

    BootstrapSession session = getBootstrapSession(partitionId, bootstrappingNodeId);
    if (session != null) {
      session.stop();
      bootstrapSessionsMap.get(bootstrappingNodeId).remove(partitionId.getId());
    }
    // Enable compaction for the blob store
    controlCompactionForBlobStore(partitionId, true);
  }
Removes the bootstrap session for a given partition ID and bootstrapping node ID.
@param partitionId The partition ID for the session.
@param bootstrappingNodeId The bootstrapping node ID for the session.
ambry-store/src/main/java/com/github/ambry/store/BootstrapSessionManager.java