I'd appreciate some advice please? We had a situation where TEMPDB log was full and we were unable to connect to the Primary replica of our SQL 2019 AG from SSMS. We were however able to connect to the secondary replica, where we initiated a failover from the primary to the secondary. The failover rolled back in-flight transactions on the primary tempdb, and so whatever that transaction was that caused the log to be filled up, was rolled back and the log was freed. We were then able to connect to that replica and did a failback to it as the primary.
My question is: Would a restart of the SQL services on each server node be of benefit in avoiding the templog filling up again - i.e. to have clean empty tempdbs recreated?