Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 31612 invoked from network); 22 Aug 2007 11:18:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 11:18:52 -0000 Received: (qmail 23787 invoked by uid 500); 22 Aug 2007 11:18:48 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 23750 invoked by uid 500); 22 Aug 2007 11:18:48 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 23738 invoked by uid 99); 22 Aug 2007 11:18:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 04:18:48 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 11:18:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE864714204 for ; Wed, 22 Aug 2007 04:18:30 -0700 (PDT) Message-ID: <23373574.1187781510843.JavaMail.jira@brutus> Date: Wed, 22 Aug 2007 04:18:30 -0700 (PDT) From: =?utf-8?Q?J=C3=B8rgen_L=C3=B8land_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3016) Replication: Add code that parses a chunk of log records (byte[]) into individual log records In-Reply-To: <12497117.1187603610857.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3016?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] J=C3=B8rgen L=C3=B8land updated DERBY-3016: --------------------------------- Attachment: slave_logscan_1.diff slave_logscan_1.stat The attached patch, v1, contains a class ReplicationLogScan that will be us= ed to parse chunks of log received from the master. It contains an implemen= tation for reading int, long and bytes from a byte[] instead of using java.= nio.ByteBuffer. As discussed in DERBY-2926, this is done in case we want to= allow replication in j2me applications. The patch also adds a new error code to SQLState.java. I chose error codes = XRExx to be the range for replication errors since X is an implementation s= pecific range according to the SQL standard, and XRE fits the naming patter= n used for other derby specific error messages. > Replication: Add code that parses a chunk of log records (byte[]) into in= dividual log records=20 > -------------------------------------------------------------------------= --------------------- > > Key: DERBY-3016 > URL: https://issues.apache.org/jira/browse/DERBY-3016 > Project: Derby > Issue Type: Sub-task > Components: Services > Affects Versions: 10.4.0.0 > Reporter: J=C3=B8rgen L=C3=B8land > Assignee: J=C3=B8rgen L=C3=B8land > Attachments: slave_logscan_1.diff, slave_logscan_1.stat > > > The derby instance that has the slave role for a database 'x' has to redo= log records sent from the master. These log records are sent in chunks as = a byte[]. To be useful to the slave, these chunks of log records must be pa= rsed into individual log records.=20 > The actual format of the received log record chunks is defined by the rep= lication log buffer (see DERBY-2926). --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.