Skip to content

Commit

Permalink
fix: do not panic on search failures during start time
Browse files Browse the repository at this point in the history
  • Loading branch information
himank committed Jun 28, 2023
1 parent f1cea7f commit 1189cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/proto
Submodule proto updated from 7e29de to 8b60b6
3 changes: 2 additions & 1 deletion server/metadata/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ func NewTenantManager(kvStore kv.TxStore, searchStore search.Store, txMgr *trans
func newTenantManager(kvStore kv.TxStore, searchStore search.Store, mdNameRegistry *NameRegistry, txMgr *transaction.Manager) *TenantManager {
collectionsInSearch, err := searchStore.AllCollections(context.TODO())
if err != nil {
log.Fatal().Err(err).Msgf("error starting server: loading schemas from search failed")
log.Err(err).Msgf("error starting server: loading schemas from search failed")
collectionsInSearch = make(map[string]*tsApi.CollectionResponse)

Check warning on line 137 in server/metadata/tenant.go

View check run for this annotation

Codecov / codecov/patch

server/metadata/tenant.go#L136-L137

Added lines #L136 - L137 were not covered by tests
}

return &TenantManager{
Expand Down

0 comments on commit 1189cf2

Please sign in to comment.