This is an automated email from the ASF dual-hosted git repository.
alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
The following commit(s) were added to refs/heads/master by this push:
new 42fbe6b2e [unit test] Fix a unit test problem from code review.
42fbe6b2e is described below
commit 42fbe6b2e0085d934068e1687de1d3c936e89ed1
Author: shenxingwuying <[email protected]>
AuthorDate: Wed Apr 20 16:14:44 2022 +0800
[unit test] Fix a unit test problem from code review.
Internal MiniTabletServer's Restart() function would core dump,
because server_ may be not nullptr, should shutdown and then start.
Change-Id: Ib6a810799cdd9adec24944c4bea959103c775966
Reviewed-on: http://gerrit.cloudera.org:8080/18427
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
---
src/kudu/tserver/mini_tablet_server.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/kudu/tserver/mini_tablet_server.cc
b/src/kudu/tserver/mini_tablet_server.cc
index 43c76d900..40acd362a 100644
--- a/src/kudu/tserver/mini_tablet_server.cc
+++ b/src/kudu/tserver/mini_tablet_server.cc
@@ -126,6 +126,7 @@ void MiniTabletServer::Shutdown() {
}
Status MiniTabletServer::Restart() {
+ Shutdown();
return Start();
}