Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-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 1C6BC11D75 for ; Mon, 5 May 2014 22:41:40 +0000 (UTC) Received: (qmail 78211 invoked by uid 500); 5 May 2014 22:41:29 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 78139 invoked by uid 500); 5 May 2014 22:41:29 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 78130 invoked by uid 99); 5 May 2014 22:41:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 22:41:29 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,UNRESOLVED_TEMPLATE X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of roger.whitcomb@actian.com) Received: from [91.220.42.227] (HELO eu-smtp-1.mimecast.com) (91.220.42.227) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 22:41:22 +0000 Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe005.messaging.microsoft.com [216.32.180.31]) (Using TLS) by uk-mta-5.uk.mimecast.lan; Mon, 05 May 2014 23:40:56 +0100 Received: from mail141-va3-R.bigfish.com (10.7.14.227) by VA3EHSOBE012.bigfish.com (10.7.40.62) with Microsoft SMTP Server id 14.1.225.22; Mon, 5 May 2014 22:40:55 +0000 Received: from mail141-va3 (localhost [127.0.0.1]) by mail141-va3-R.bigfish.com (Postfix) with ESMTP id 96BD14C0227 for ; Mon, 5 May 2014 22:40:54 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.240.117;KIP:(null);UIP:(null);(null);H:BL2PRD0610HT004.namprd06.prod.outlook.com;R:internal;EFV:INT X-SpamScore: 2 X-BigFish: PS2(zzc85fh4015Id88dizz1f42h2148h1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6h208chzz1d7338h17326ah8275bh8275dh18c673h1de097h186068hz31h109h2a8h839hd24hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh224fh1d07h1d0ch1d2eh1d3fh1dc1h1de9h1dfeh1dffh1e1dh1fe8h1ff5h20f0h2216h22d0h2336h2461h2487h24d7h2516h2545h255eh25cch25f6h2605h268bh26c8h26d3h27e2h9a9j) X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009001)(6009001)(428001)(199002)(189002)(164054003)(74662001)(81342001)(81542001)(83322001)(19580395003)(16236675002)(79102001)(87936001)(15975445006)(31966008)(76482001)(76576001)(19300405004)(2656002)(64706001)(74502001)(86362001)(50986999)(54356999)(4396001)(83072002)(99286001)(15202345003)(101416001)(92566001)(46102001)(80022001)(99396002)(85852003)(20776003)(77982001)(21056001)(74316001)(33646001)(66066001)(24736002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR06MB408;H:BN1PR06MB405.namprd06.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received: from mail141-va3 (localhost.localdomain [127.0.0.1]) by mail141-va3 (MessageSwitch) id 1399329651981675_20740; Mon, 5 May 2014 22:40:51 +0000 (UTC) Received: from VA3EHSMHS045.bigfish.com (unknown [10.7.14.250]) by mail141-va3.bigfish.com (Postfix) with ESMTP id DAC25400071 for ; Mon, 5 May 2014 22:40:51 +0000 (UTC) Received: from BL2PRD0610HT004.namprd06.prod.outlook.com (157.56.240.117) by VA3EHSMHS045.bigfish.com (10.7.99.55) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 5 May 2014 22:40:51 +0000 Received: from BN1PR06MB408.namprd06.prod.outlook.com (10.141.60.27) by BL2PRD0610HT004.namprd06.prod.outlook.com (10.255.101.39) with Microsoft SMTP Server (TLS) id 14.16.453.0; Mon, 5 May 2014 22:40:50 +0000 Received: from BN1PR06MB405.namprd06.prod.outlook.com (10.141.60.11) by BN1PR06MB408.namprd06.prod.outlook.com (10.141.60.27) with Microsoft SMTP Server (TLS) id 15.0.934.12; Mon, 5 May 2014 22:40:49 +0000 Received: from BN1PR06MB405.namprd06.prod.outlook.com ([169.254.8.169]) by BN1PR06MB405.namprd06.prod.outlook.com ([169.254.8.169]) with mapi id 15.00.0934.000; Mon, 5 May 2014 22:40:49 +0000 From: Roger Whitcomb To: Commons Users List Subject: [VFS] Funny result for HDFS FileObject.equals Thread-Topic: [VFS] Funny result for HDFS FileObject.equals Thread-Index: Ac9osip/RNVs5lxhRXqd0bfAd5cRZw== Date: Mon, 5 May 2014 22:40:48 +0000 Message-ID: <1849a8939c654dfe95d8f39e43a6d7bc@BN1PR06MB405.namprd06.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [64.47.109.18] x-forefront-prvs: 0202D21D2F MIME-Version: 1.0 X-OriginatorOrg: actian.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%47977$Dn%COMMONS.APACHE.ORG$RO%2$TLS%1$FQDN%eu-smtp-1.mimecast.com$TlsDn% X-MC-Unique: _3DDaruQR2WmPxg6lqtahg-1 Content-Type: multipart/alternative; boundary="_000_1849a8939c654dfe95d8f39e43a6d7bcBN1PR06MB405namprd06pro_" X-Virus-Checked: Checked by ClamAV on apache.org --_000_1849a8939c654dfe95d8f39e43a6d7bcBN1PR06MB405namprd06pro_ Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Hi, I'm using Commons VFS inside an Apache Pivot remote file br= owser and I'm getting a strange result when switching between different HDF= S hosts. I have two FileObjects, with different host:port (but the same di= rectory name), and they compare equal (i.e., the FileObject.equals(...) met= hod returns true, when they are clearly not the same. Any thoughts? Here is the code and my results: System.out.format("VFSBrowserSheet.setRootDirectory: does '%1$s' exist()? %= 2$s%n", rootDirectory, rootDirectory.exists()); if (rootDirectory.exists()) { FileObject previousRootDirectory =3D this.rootDirectory; System.out.format("VFSBrowserSheet.setRootDirectory: previousRootDirectory = =3D %1$s%n", previousRootDirectory); System.out.format("VFSBrowserSheet.setRootDirectory: rootDirectory[%1$s].eq= uals(previousRootDirectory[%2$s])? %3$s%n", rootDirectory, previousRootDire= ctory, rootDirectory.equals(previousRootDirectory)); if (!rootDirectory.equals(previousRootDirectory)) { this.rootDirectory =3D rootDirectory; selectedFiles.clear(); System.out.format("VFSBrowserSheet.setRootDirectory, calling 'rootDirectory= Changed'%n"); fileBrowserSheetListeners.rootDirectoryChanged(this, previo= usRootDirectory); } VFSBrowserSheet.setRootDirectory: does 'hdfs://chhadoop-master:9000/' exist= ()? true VFSBrowserSheet.setRootDirectory: previousRootDirectory =3D hdfs://chcluste= r2-master:8020/ VFSBrowserSheet.setRootDirectory: rootDirectory[hdfs://chhadoop-master:9000= /].equals(previousRootDirectory[hdfs://chcluster2-master:8020/])? True Thanks, ~Roger Whitcomb --_000_1849a8939c654dfe95d8f39e43a6d7bcBN1PR06MB405namprd06pro_--