Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 50694 invoked from network); 21 Nov 2007 04:56:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2007 04:56:21 -0000 Received: (qmail 69456 invoked by uid 500); 21 Nov 2007 04:56:07 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 69410 invoked by uid 500); 21 Nov 2007 04:56:07 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 69399 invoked by uid 99); 21 Nov 2007 04:56:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 20:56:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of akarasulu@gmail.com designates 209.85.198.184 as permitted sender) Received: from [209.85.198.184] (HELO rv-out-0910.google.com) (209.85.198.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 04:55:57 +0000 Received: by rv-out-0910.google.com with SMTP id g11so1788488rvb for ; Tue, 20 Nov 2007 20:55:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=qK+RcDnUA+Iqya07nyUdcQvPOeJo6jb5KjgA4EhyTDw=; b=h3EcX54i2IlqABlw0YoVOSFmyctvF105vmQEsk8c9XmmgPAyOU8eakxQA5fUXbvOzF/HF7LU9slqjuS9FgKp/x9xO2YdWV9bFt0odoH4jAM/L5JSXh1jpTNksKB2oWI+pgyBKbHM3D1CstZWbkqpiGIfY1wOXYLCeFcKcl9oFpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=J0y6PpMtpTbdqvmj1RTzqQI5eqMUt3ZcPT+uwj9LGlz5DIidAT0Hf/AuiE82VQMZAND7zLdqvWugI5B7Wh1/ujuNHUCgrQHtwk5nBqJphf3p46eFhD0DyijKVOw9/8nCHFUMC1+pr/WvMyneFLRxQCN0rOuTHupFMkqZ3LIeq2U= Received: by 10.114.57.1 with SMTP id f1mr592260waa.1195620950887; Tue, 20 Nov 2007 20:55:50 -0800 (PST) Received: by 10.115.18.12 with HTTP; Tue, 20 Nov 2007 20:55:50 -0800 (PST) Message-ID: Date: Tue, 20 Nov 2007 23:55:50 -0500 From: "Alex Karasulu" Sender: akarasulu@gmail.com To: "Apache Directory Developers List" Subject: [ApacheDS] Must be able to accept or handle mixed values in Attribute objects MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 40e5c6e0be1b684e X-Virus-Checked: Checked by ClamAV on apache.org Emmanuel, After our talk on IRC last night, I discovered the cause of that bug which breaks integration tests on Windows. It's really serious and it's impact is severe. The bug results from the inability to handle byte[] and String values in the same Attribute. It escaped me that the partition structure was changed to pre-pend a byte indicating the type of the data when serializing. I was going to dive into the code to fix it really quick but I realized I better wait until you took a look at it. Unfortunately his is no longer the simple fix I thought it would be. I filed the following JIRA: https://issues.apache.org/jira/browse/DIRSERVER-1104 Please take a look and let me know how you think we should approach this. Until we fix the bug, any LDIF that pushes mixing binary (like seealso:: ..) and non binary (seealso: ..) values in the same attribute will make the server fail on sync operations forever. Once such an Attributes object gets into the cache, sync operations will continue to fail. Nothing is pushed to disk since the whole sync occurs in one check point. As more entries get into the cache and the server tries to write to disk it will fail over and over. Nothing after this fault causing entry will be able to persist to disk. So this entry with a byte[] and String in the same attribute is blocking all other entries from being flushed. Eventually an OutOfMemoryException will result and make the server die. This is a critical problem. Thanks, Alex