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

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 6fcc4b8  Fix thread safety issues in SyncServerManager (#2027)
6fcc4b8 is described below

commit 6fcc4b855262316aa197ac26f0087f51c1f07c17
Author: Benedict Jin <[email protected]>
AuthorDate: Wed Nov 18 12:50:46 2020 +0800

    Fix thread safety issues in SyncServerManager (#2027)
---
 .../main/java/org/apache/iotdb/db/service/thrift/ThriftService.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/service/thrift/ThriftService.java 
b/server/src/main/java/org/apache/iotdb/db/service/thrift/ThriftService.java
index 8fe34ba..04384d4 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/thrift/ThriftService.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/thrift/ThriftService.java
@@ -90,7 +90,7 @@ public abstract class ThriftService implements IService {
 
 
   @SuppressWarnings("squid:S2276")
-  public synchronized void startService() throws StartupException {
+  public void startService() throws StartupException {
     if (STATUS_UP.equals(getRPCServiceStatus())) {
       logger.info("{}: {} has been already running now", 
IoTDBConstant.GLOBAL_DB_NAME,
           this.getID().getName());
@@ -124,12 +124,12 @@ public abstract class ThriftService implements IService {
   }
 
 
-  public synchronized void restartService() throws StartupException {
+  public void restartService() throws StartupException {
     stopService();
     startService();
   }
 
-  public synchronized void stopService() {
+  public void stopService() {
     if (STATUS_DOWN.equals(getRPCServiceStatus())) {
       logger.info("{}: {} isn't running now", IoTDBConstant.GLOBAL_DB_NAME, 
this.getID().getName());
       return;

Reply via email to