Xinyu Tan created IOTDB-3076:
--------------------------------
Summary: Optimize StandAloneConsensus read/write performance &&
consensus module code refactor
Key: IOTDB-3076
URL: https://issues.apache.org/jira/browse/IOTDB-3076
Project: Apache IoTDB
Issue Type: Wish
Reporter: Xinyu Tan
Assignee: Xinyu Tan
In the current implementation, StandAloneConsensus uses concurrentHashMap to
ensure concurrency security, whereas it limits concurrency to concurrentHashMap
for read-write interfaces. This makes thread-safe even for non-thread-safe
state machines. However, the current three state machine implementations of
IoTDB all guarantee their own thread safety, so we can extend the concurrency
safety control of the read-write interface to ensure that the overall
performance is not limited by the parallelism of concurrentHashMap.
In addition, the issue also made two other changes to make the code clearer
* Change consensusGroupID from Interface to Abstract class
* Delete the statemachine directory so that the base classes and interfaces
are in the home directory
--
This message was sent by Atlassian Jira
(v8.20.7#820007)