If he wins his last re-election bid Tuesday, longtime Royal Oak 44th District Judge Terrence Brennan is expected to resign to head off disciplinary action over allegations he had an affair with a staffer and showed her preferential treatment,Memos City Attorney David Gillham sent to city officials in October outlined the tense scenario playing out at the courthouse that led City Commissioner David Poulton to mount a sudden campaign as a write-in candidate to defeat Brennan.