You might be thinking that, in the year 2018, New York’s voting should be proof against a little drizzle. No matter the precise reasons for this specific foul-up, the dysfunction in what residents like to think of as the most sophisticated city in the world was an example of the broader dysfunction of the state’s electoral system.

It is run by a calcified, partisan bureaucracy that is among the worst election agencies in the country. A Democratic Legislature could impose measures to make voting easier — reducing idiotically long lines on Election Day — and modernize the election system.

New York could have early voting, as do more than three dozen other states. And allowing residents to get absentee ballots without having to provide a reason would give voters more options and also ease Election Day lines.

The Legislature should professionalize the state’s election board system. Now, state law requires election boards to be made up of members selected by the two main political parties. Though the system is bipartisan, it emphasizes mere partisanship over actual qualification. It has also tended to create gridlock.

The New York City Board of Elections, for example, is made up of 10 commissioners , five chosen by the Democratic Party and five by the Republican Party, with members from each borough. The Legislature should change state election law to make the board more accountable to the city and its taxpayers, rather than party officials. That could mean remaking the board into a nonpartisan body, or requiring by state law that anyone appointed to serve as an elections official have relevant experience and qualifications apart from membership in the Democratic or Republican Party.