Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-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 42EC2117F6 for ; Mon, 30 Jun 2014 17:57:27 +0000 (UTC) Received: (qmail 4176 invoked by uid 500); 30 Jun 2014 17:57:27 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 4133 invoked by uid 500); 30 Jun 2014 17:57:27 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 4120 invoked by uid 99); 30 Jun 2014 17:57:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 17:57:27 +0000 Date: Mon, 30 Jun 2014 17:57:26 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2942) org.apache.accumulo.core.util.format.ShardedTableDistributionFormatterTest.testAggregate failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047908#comment-14047908 ] ASF GitHub Bot commented on ACCUMULO-2942: ------------------------------------------ Github user busbey commented on the pull request: https://github.com/apache/accumulo/pull/10#issuecomment-47563841 this has been pushed and merged forward. > org.apache.accumulo.core.util.format.ShardedTableDistributionFormatterTest.testAggregate failure > ------------------------------------------------------------------------------------------------ > > Key: ACCUMULO-2942 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2942 > Project: Accumulo > Issue Type: Sub-task > Components: tserver > Affects Versions: 1.6.0 > Environment: IBM JVM > Reporter: Hayden Marchant > Assignee: Hayden Marchant > Labels: newbie > Fix For: 1.6.1, 1.7.0 > > Original Estimate: 24h > Time Spent: 20m > Remaining Estimate: 23h 40m > > org.apache.accumulo.core.util.format.ShardedTableDistributionFormatterTest.testAggregate . This fails on IBM JRE, since the test is asserting order of elements in a HashMap. This consistently passes on Sun , and consistently fails on Oracle. > The ShardedTableDistributionFormatter inherits from AggregatingFormatter which has 2 overriding methods - aggregateStats and getStats. In the ShardedTableDistributionFormatter implementation, the aggregateStats prepares a list based on the HashMap, and the getStats creates a string by serializing values in the HashMap. > Due to the unpredictability of Hash ordering in different Java versions (even same vendor, different versions), the getStats() output is inconsistent. This is not a problem in itself. However since we are asserting on the content of getStats, we we either make the getStatus consistent or we do some refactoring and do 2 tests - one test on the structure that getStats is serializing, and another test to assert the output of getStats based on a predictable structure. > Some people expressed concern for changing the underlying structure from a HashMap to TreeMap due to performance considerations. Question is, is this code ever executed in such an environment to be concerned about this? > Alternatively, we could just change the getStats method, which is after the 'heavy-lifting' of iterating over all entries. The stats that are calculated are aggregates per day. Therefore this will not be such a large structure, and could then be sorted before being output. -- This message was sent by Atlassian JIRA (v6.2#6252)