This is an automated email from the ASF dual-hosted git repository.

saipranav pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 69069c87 "Fixed issue with data carryover between instances" (#139)
69069c87 is described below

commit 69069c87d276e88ade9688472944e2298fa69eec
Author: Saipranav-Kotamreddy 
<[email protected]>
AuthorDate: Tue Apr 2 16:17:16 2024 -0700

    "Fixed issue with data carryover between instances" (#139)
---
 platform/statistic/stats.cpp              | 6 +++++-
 service/tools/config/server/server.config | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/platform/statistic/stats.cpp b/platform/statistic/stats.cpp
index 33de785c..d8de42a7 100644
--- a/platform/statistic/stats.cpp
+++ b/platform/statistic/stats.cpp
@@ -243,8 +243,9 @@ void Stats::SendSummary(){
 
   
consensus_history_[std::to_string(transaction_summary_.txn_number)]=summary_json_;
 
-  LOG(ERROR)<<summary_json_.dump();
 
+  LOG(ERROR)<<summary_json_.dump();
+  
   //Reset Transaction Summary Parameters
   
transaction_summary_.request_pre_prepare_state_time=std::chrono::system_clock::time_point::min();
   
transaction_summary_.prepare_state_time=std::chrono::system_clock::time_point::min();
@@ -252,6 +253,9 @@ void Stats::SendSummary(){
   
transaction_summary_.execution_time=std::chrono::system_clock::time_point::min();
   transaction_summary_.prepare_message_count_times_list.clear();
   transaction_summary_.commit_message_count_times_list.clear();
+
+  summary_json_.clear();
+
 }
 
 void Stats::MonitorGlobal() {
diff --git a/service/tools/config/server/server.config 
b/service/tools/config/server/server.config
index 1dc5b0de..7c6680f4 100644
--- a/service/tools/config/server/server.config
+++ b/service/tools/config/server/server.config
@@ -33,7 +33,7 @@
     write_batch_size:1,
   },
   require_txn_validation:true,
-  enable_viewchange:true,
+  enable_viewchange:false,
   enable_resview:true,
   enable_faulty_switch:false
 }

Reply via email to