Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Should exit cleanly even when API server has not started.
kishorenc72e10d2ee4af
diff --git a/src/typesense_server_utils.cpp b/src/typesense_server_utils.cppindex 13602894..6e003862 100644--- a/src/typesense_server_utils.cpp+++ b/src/typesense_server_utils.cpp@@ -235,7 +235,7 @@ int start_raft_server(ReplicationState& replication_state, const std::string& stsleep(1);}- LOG(INFO) << "Typesense peering service is going to quit";+ LOG(INFO) << "Typesense peering service is going to quit.";// Stop counter before serverreplication_state.shutdown();@@ -244,6 +244,8 @@ int start_raft_server(ReplicationState& replication_state, const std::string& st// Wait until all the processing tasks are over.replication_state.join();raft_server.Join();++ LOG(INFO) << "Typesense peering service has quit.";return 0;}@@ -325,7 +327,7 @@ int run_server(const Config & config, const std::string & version, void (*master// Wait for peering service to be ready before starting http// Follower or leader must have started AND data must also have been loadedLOG(INFO) << "Waiting for peering service to be ready before starting API service...";- while(replication_state.get_init_readiness_count() < 2) {+ while(replication_state.get_init_readiness_count() < 2 && !quit_raft_service) {std::this_thread::sleep_for(std::chrono::milliseconds(500));}