From commits-return-205308-archive-asf-public=cust-asf.ponee.io@cassandra.apache.org Fri Jan 12 17:58:10 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 699DD180621 for ; Fri, 12 Jan 2018 17:58:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 59AFB160C42; Fri, 12 Jan 2018 16:58:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9FF40160C30 for ; Fri, 12 Jan 2018 17:58:09 +0100 (CET) Received: (qmail 46454 invoked by uid 500); 12 Jan 2018 16:58:08 -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 46443 invoked by uid 99); 12 Jan 2018 16:58:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2018 16:58:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3189A1A10E6 for ; Fri, 12 Jan 2018 16:58:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RZLA2s82X17z for ; Fri, 12 Jan 2018 16:58:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 09ED85F6CD for ; Fri, 12 Jan 2018 16:58:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5AEE8E1287 for ; Fri, 12 Jan 2018 16:58:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 157F325BD3 for ; Fri, 12 Jan 2018 16:58:03 +0000 (UTC) Date: Fri, 12 Jan 2018 16:58:03 +0000 (UTC) From: "Jeff Jirsa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-14166) sstabledump tries to delete a file 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-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324236#comment-16324236 ] Jeff Jirsa commented on CASSANDRA-14166: ---------------------------------------- Somewhat related to CASSANDRA-11163 , but {{sstabledump}} especially really shouldn't be making any changes. > sstabledump tries to delete a file > ---------------------------------- > > Key: CASSANDRA-14166 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14166 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Python_Max > > Directory /var/lib/cassandra/data// has cassandra:cassandra owner. > An error happens when sstabledump executed on file in that directory by regular user: > {code:java} > $ sstabledump mc-56801-big-Data.db > Exception in thread "main" FSWriteError in /var/lib/cassandra/data//
/mc-56801-big-Summary.db > at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:142) > at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:159) > at org.apache.cassandra.io.sstable.format.SSTableReader.saveSummary(SSTableReader.java:935) > at org.apache.cassandra.io.sstable.format.SSTableReader.saveSummary(SSTableReader.java:920) > at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:788) > at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:731) > at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:516) > at org.apache.cassandra.io.sstable.format.SSTableReader.openNoValidation(SSTableReader.java:396) > at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:191) > Caused by: java.nio.file.AccessDeniedException: /var/lib/cassandra/data//
/mc-56801-big-Summary.db > at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) > at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) > at java.nio.file.Files.delete(Files.java:1126) > at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:136) > ... 8 more > {code} > I have changed bloom_filter_fp_chance for that table couple months ago, so I believe that's the reason why SSTableReader wants to recreate summary file. But when used in sstabledump it should not try to modify / delete any files. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org