You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/05/30 13:57:25 UTC

[GitHub] [iotdb] HeimingZ commented on a diff in pull request #6076: [IOTDB-3335] Redundant data recovered by wal in multi-leader consensus

HeimingZ commented on code in PR #6076:
URL: https://github.com/apache/iotdb/pull/6076#discussion_r884859025


##########
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java:
##########
@@ -3541,7 +3542,9 @@ public IDTable getIdTable() {
   }
 
   public IWALNode getWALNode() {
-    if (!config.isClusterMode()) {
+    if (!config
+        .getDataRegionConsensusProtocolClass()
+        .equals(ConsensusFactory.MultiLeaderConsensus)) {
       throw new UnsupportedOperationException();
     }

Review Comment:
   No, only multi-leader consensus will invoke this method.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org