Voters in parts of Los Angeles and Orange counties on Tuesday may replace a state senator who resigned in February over sexual misconduct allegations with someone who would serve just a few months.

The winner of the district’s special election Tuesday will serve out the remainder of former Sen. Tony Mendoza’s term that ends in November.

With the Legislature already in the final weeks of its legislative session, it’s unclear when the winner of Tuesday’s election will be sworn in. The timing will depend on how close the election results are, said Lizelda Lopez, a spokeswoman for Senate Leader Toni Atkins.

In a unique twist, primary voters chose different Democrats during the June 5 primary, where both the special and regular elections appeared on the same ballot. That means Democrat Vanessa Delgado would only serve until November if she’s elected and won’t have a chance to serve a full term.

Delgado faces Republican Rita Topalian on Tuesday. Topalian will also be on the ballot in November, when she’ll face a different Democrat: Bob Archuleta.

Roughly half the district’s voters are Democrats, while just more than 20 percent are registered with the GOP. But Republicans believe they have a shot at the seat, in part because Topalian is the only candidate who could serve both the remainder of the current term and the next term.

“It’s a longshot, but we do have a shot,” said Topalian, a businesswoman who says she’s particularly concerned about wasteful spending in California.

Delgado said she plans to be sworn in as state senator if she wins. She is still working to determine whether she can keep her city government role in Montebello, where she serves as mayor.

Even though her Senate term would be short, she says she would focus on securing much needed resources for her district, which has lacked representation since Mendoza resigned.

The Legislature’s session concludes at the end of August.

In both primaries, Topalian secured roughly 29,000 votes while Delgado secured nearly 19,000. Archuleta won fewer than 14,000 votes in the special election primary but more than 20,000 in the general election. Nearly 2,500 more people voted in the regular election than the special, although both appeared on the same ballot.

Residents have expressed confusion about the primary, when ballots included both the special primary election and the regular primary, Topalian said.

“I’m hearing from some very experienced voters that they didn’t realize they have to vote twice,” Delgado said.

Polls close Tuesday at 8 p.m.

SOPHIA BOLLAG, Associated Press