Return-Path: X-Original-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3528C18150 for ; Sat, 24 Oct 2015 01:28:25 +0000 (UTC) Received: (qmail 93383 invoked by uid 500); 24 Oct 2015 01:28:25 -0000 Delivered-To: apmail-asterixdb-notifications-archive@asterixdb.apache.org Received: (qmail 93353 invoked by uid 500); 24 Oct 2015 01:28:25 -0000 Mailing-List: contact notifications-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list notifications@asterixdb.incubator.apache.org Received: (qmail 93344 invoked by uid 99); 24 Oct 2015 01:28:25 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Oct 2015 01:28:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8E39A18099A for ; Sat, 24 Oct 2015 01:28:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.92 X-Spam-Level: X-Spam-Status: No, score=0.92 tagged_above=-999 required=6.31 tests=[SPF_FAIL=0.919, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YnVfFvbu7dOv for ; Sat, 24 Oct 2015 01:28:12 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id B4978439E9 for ; Sat, 24 Oct 2015 01:28:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 3064E240C74; Fri, 23 Oct 2015 18:25:26 -0700 (PDT) Date: Fri, 23 Oct 2015 18:25:26 -0700 From: "Young-Seok Kim (Code Review)" To: Murtadha Hubail CC: Jenkins , Yingyi Bu , abdullah alamoudi , Ian Maxon Reply-To: kisskys@gmail.com X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: Introducing Data Replication To AsterixDB X-Gerrit-Change-Id: I729fdd1144dbc9ff039b4bc414494860d7553810 X-Gerrit-ChangeURL: X-Gerrit-Commit: b46ae10a78db551bb0b65f483f2502179bd8cd61 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.8.4 Message-Id: <20151024012526.3064E240C74@unhygienix.ics.uci.edu> Young-Seok Kim has posted comments on this change. Change subject: Introducing Data Replication To AsterixDB ...................................................................... Patch Set 10: (6 comments) Please address comments. https://asterix-gerrit.ics.uci.edu/#/c/338/10/asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationChannel.java File asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationChannel.java: Line 412: synchronized (GOODBYE_BUFFER) { Let's create byte buffer for each request instead of going through sync block and doing IO in it. This seems less harmful based on the fact that sendGoodbye() are used per LSMDiskComponent replication request and sendAck() per file transmission. Line 414: socketChannel.write(GOODBYE_BUFFER); make sure that the write() return value matches the size of buffer you requested to write. Line 421: socketChannel.write(ACK_BUFFER); make sure that the write() return value matches the size of buffer you requested to write. https://asterix-gerrit.ics.uci.edu/#/c/338/10/asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationManager.java File asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationManager.java: Line 1048: synchronized (GOODBYE_BUFFER) { let's revert to generate obejcts https://asterix-gerrit.ics.uci.edu/#/c/338/10/asterix-replication/src/main/java/org/apache/asterix/replication/recovery/RemoteRecoveryManager.java File asterix-replication/src/main/java/org/apache/asterix/replication/recovery/RemoteRecoveryManager.java: Line 119: //System.out.println("Remote logs found: " + remoteRecoveryLogs.size()); let's remove https://asterix-gerrit.ics.uci.edu/#/c/338/10/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java File asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java: Line 142: state = SystemState.NEW_UNIVERSE; Should be CORRUPTED -- To view, visit https://asterix-gerrit.ics.uci.edu/338 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I729fdd1144dbc9ff039b4bc414494860d7553810 Gerrit-PatchSet: 10 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Murtadha Hubail Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: Young-Seok Kim Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes