google / zoekt

Fast trigram based code search
1.7k stars 113 forks source link

zoekt-webserver: Work With Empty Index Directory #130

Open dharesign opened 3 years ago

dharesign commented 3 years ago

I have configured two services, one running zoekt-indexserver and another zoekt-webserver. On a freshly configured system, the web server fails to start until the index server has written the first item to the index directory.

It fails here.

It would be nice if the web server could come up immediately.

hanwen commented 3 years ago

yeah, I added this to guard against operator error, but maybe we should just remove this check. Send a change? (see CONTRIBUTING)