Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C3204EF5 for ; Tue, 5 Jul 2011 13:38:40 +0000 (UTC) Received: (qmail 47730 invoked by uid 500); 5 Jul 2011 13:38:40 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 47565 invoked by uid 500); 5 Jul 2011 13:38:38 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 47557 invoked by uid 99); 5 Jul 2011 13:38:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 13:38:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 13:38:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 898A7435B7 for ; Tue, 5 Jul 2011 13:38:16 +0000 (UTC) Date: Tue, 5 Jul 2011 13:38:16 +0000 (UTC) From: "Nick Bailey (JIRA)" To: commits@cassandra.apache.org Message-ID: <1748237323.623.1309873096545.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1593890346.26005.1308689267499.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2805) Clean up mbeans that return Internal Cassandra types 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/CASSANDRA-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059901#comment-13059901 ] Nick Bailey commented on CASSANDRA-2805: ---------------------------------------- Off the top of my head: * A CompactionInfo object is returned when getting compactions from the CompactionManager mbean. * Sub-types of Token objects are returned when calling getTokenToEndpointMap (StorageService mbean i think). I'll see if i can't look around for any more. > Clean up mbeans that return Internal Cassandra types > ---------------------------------------------------- > > Key: CASSANDRA-2805 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2805 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.8.1 > Reporter: Nick Bailey > Assignee: Nick Bailey > Priority: Minor > Fix For: 0.8.2 > > > We need to clean up wherever we return internal cassandra objects over jmx. Namely CompactionInfo objects as well as Tokens. There may be a few other examples. > This is bad for two reasons > 1. You have to load the cassandra jar when querying these mbeans, which sucks. > 2. Stuff breaks between versions when things are moved. For example, CASSANDRA-1610 moves the compaction related classes around. Any code querying those jmx mbeans in 0.8.0 is now broken in 0.8.2. (assuming those moves stay in the 0.8 branch) > For things like CompactionInfo we should just expose more mbean methods or serialize to something standard like json. > I'd like to target this for 0.8.2. Since we've already broken compatibility between 0.8.0 and 0.8.1, I'd say just fix this everywhere now. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira