For some reasons when we delete a MergeTree Part in atomic way something may go wrong - and leave the `delete_tmp_*` folder or it's part on disk. This may lead to a disk space consumption over time.

It's suggested to delete this folders at least at server start-up. Current solution with `clearOldTemporaryDirectories()` doesn't work because this method is called periodically from a thread without any locks or advisory on folders - it may cause the race conditions.
Int64 getMaxBlockNumber() const;
    
    DataParts getDataParts(const DataPartStates & affordable_states) const;
    DataPartsVector getDataPartsVectorForInternalUsage(
        const DataPartStates & affordable_states,
        const DataPartsLock & lock,
        DataPartStateVector * out_states = nullptr,
        bool require_projection_parts = false) const;
    
    
    DataPartsVector getDataPartsVectorForInternalUsage(
        const DataPartStates & affordable_states, DataPartStateVector * out_states = nullptr, bool require_projection_parts = false) const;
    
    DataPartsVector getAllDataPartsVector(
        DataPartStateVector * out_states = nullptr,
        bool require_projection_parts = false) const;
    
    DataParts getDataPartsForInternalUsage() const;
    DataPartsVector getDataPartsVectorForInternalUsage() const;
    void filterVisibleDataParts(DataPartsVector & maybe_visible_parts, CSN snapshot_version, TransactionID current_tid) const;
    
    DataPartsVector getVisibleDataPartsVector(ContextPtr local_context) const;