Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D6CFD33F for ; Thu, 29 Nov 2012 14:59:44 +0000 (UTC) Received: (qmail 27756 invoked by uid 500); 29 Nov 2012 14:59:44 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 27427 invoked by uid 500); 29 Nov 2012 14:59:39 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 27379 invoked by uid 99); 29 Nov 2012 14:59:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 14:59:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of josh.accumulo@gmail.com designates 209.85.161.169 as permitted sender) Received: from [209.85.161.169] (HELO mail-gg0-f169.google.com) (209.85.161.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 14:59:29 +0000 Received: by mail-gg0-f169.google.com with SMTP id u4so1849673ggl.0 for ; Thu, 29 Nov 2012 06:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mYy44q3+SsF7iVSN5jLdkMOM5oaziWD54tRypb5RWNY=; b=Ol8Zu6pGmnWb3mnIv6GC2x+71e2oJAxQ1uWCow04YaxsM7OWuKUXITkUWJ62Fqt9GK hHGBnSMyj1oy6wQ3a9XaU+cB7qq+oJ0iAoNJTWgzSmLe8JiSuYtAiN0YZ9mDJ57o8N7K Xodd0xTZeFDjeIz1iQQCghhJ5Vva5D5eSZHiGTc/Gp/oxNiTVZq3aaIRv/Dk8H/rseQY jgWuoYuzKVRTmALTOac0YoHjWYrkV0NSPM2l7gPvgX4bIFLVC8MixSNTAeGI9fhawzAF P6/Ax3NJb8CYGzyn14/IcYDSHs/L8zWHUAlw2Dbln9HesJDK+HWpSR59ZR5ysueKNQKE 1W1w== MIME-Version: 1.0 Received: by 10.236.142.135 with SMTP id i7mr23674233yhj.127.1354201148869; Thu, 29 Nov 2012 06:59:08 -0800 (PST) Received: by 10.146.160.9 with HTTP; Thu, 29 Nov 2012 06:59:08 -0800 (PST) Date: Thu, 29 Nov 2012 09:59:08 -0500 Message-ID: Subject: Accumulo Junit Concurrency/Latency issues ( Accumulo 1.3 ) From: Joe Berk To: user Content-Type: multipart/alternative; boundary=20cf300e55556ecb4804cfa3862b X-Virus-Checked: Checked by ClamAV on apache.org --20cf300e55556ecb4804cfa3862b Content-Type: text/plain; charset=ISO-8859-1 Good morning all, I'm experiencing some "weirdness" when executing JUnit tests for my classes that operate with Accumulo. I can best describe it as latency. Basically, when I write my object to Accumulo & then immediately retrieve it to inspect the values, the values are not always updated to what I just saved them as. Problem: part 1: - I create an object that has some primitive types. - I set the primitive variables to acceptable values. - I serialize the object (the "Value") - I write the Value to Accumulo ( Entry ) - I retrieve the Object from Accumulo & inspect. The primitive values are equal to what they were set to. part 2: - I retrieve the object from Accumulo - I set the primitive variables to different values - I serialize the object - I write the Value to Accumlo ( Entry ) - I retrieve the Object from Accumulo & inspect. The primitive values are *not equal* to what they were just set to This only seems to be happening during the JUnit. I have a method that performs the above task, in a JUnit test, and when I repeatedly run the JUnit test, it will intermittently fail. I have the same exact method, but it is in a regular class, and I can run it as much as I want, with no failure. for the non-JUnit test, MockInstances and "real" instances succeed every time for the JUnit test, MockInstances and "real" instances both fail intermittently. sidenotes: - I am definitely using the same key to update and retrieve the data. I also inspected the entries that I was writing to Accumulo, every time, and can confirm that they are being "sent"/"written" to Accumulo as I intend them to be. In summary, I am positive that I am sending the correct data to be written. This is doubly verified by my ability to intermittently succeed when JUnit and 100% succeed in a "normal" class. Any assistance would be greatly appreciated. Best Regards, Josh --20cf300e55556ecb4804cfa3862b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Good morning all,

I'm experiencing some "weirdn= ess" when executing JUnit tests for my classes that operate with Accum= ulo. I can best describe it as latency.
Basically, when I write m= y object to Accumulo & then immediately retrieve it to inspect the valu= es, the values are not always updated to what I just saved them as.

Problem:
=A0 part 1:
=A0 =A0 - I cr= eate an object that has some primitive types.
=A0 =A0 - I set the= primitive variables to acceptable values.
=A0 =A0 - I serialize = the object (the "Value")
=A0 =A0 - I write the Value to Accumulo ( Entry )
=A0 =A0 - = I retrieve the Object from Accumulo & inspect. The primitive values are= equal to what they were set to.

=A0 part 2:
=
=A0 =A0 - I retrieve the object from Accumulo
=A0 =A0 - I set the primitive variables to different values
= =A0 =A0 - I serialize the object
=A0 =A0 - I write the Value to A= ccumlo ( Entry )=A0
=A0 =A0 - I retrieve the Object from Accumulo= & inspect. The primitive values are not equal=A0to what they we= re just set to

This only seems to be happening during the JUnit.=A0

I have a method that performs the above task, in a J= Unit test, and when I repeatedly run the JUnit test, it will intermittently= fail.
I have the same exact method, but it is in a regular class, and I can = run it as much as I want, with no failure.=A0

for = the non-JUnit test, MockInstances and =A0"real" instances succeed= every time
for the JUnit test, MockInstances and "real" instances both = fail intermittently.

sidenotes:
- I am d= efinitely using the same key to update and retrieve the data. I also inspec= ted the entries that I was writing to Accumulo, every time, and can confirm= that they are being "sent"/"written" to Accumulo as I = intend them to be. In summary, I am positive that I am sending the correct = data to be written. This is doubly verified by my ability to intermittently= succeed when JUnit and 100% succeed in a "normal" class.

Any assistance would be greatly appreciated.
=
Best Regards,

Josh=A0

=A0 =A0


=


--20cf300e55556ecb4804cfa3862b--