Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2669

Scrub does not close files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.7, 0.8.1
    • Legacy/Tools
    • None
    • Low

    Description

      After scrubbing I find that cassandra process still holds file handles to the deleted sstables:

      root@blnrzh047:/mnt/cassandra# jps
      6932 Jps
      32359 CassandraDaemon
      32398 CassandraJmxHttpServer
      
      root@blnrzh047:/mnt/cassandra# du -sh .
      315G	.
      
      root@blnrzh047:/mnt/cassandra# df -h .
      Filesystem            Size  Used Avail Use% Mounted on
      /dev/md0              1.1T  626G  420G  60% /mnt/cassandra
      
      
      root@blnrzh047:/mnt/cassandra# lsof | grep /mnt
      java      32359        root  356r      REG                9,0           24    4194599 /mnt/cassandra/data/system/Migrations-f-13-Index.db (deleted)
      java      32359        root  357r      REG                9,0       329451    4194547 /mnt/cassandra/data/system/HintsColumnFamily-f-588-Data.db (deleted)
      java      32359        root  358r      REG                9,0           22    4194546 /mnt/cassandra/data/system/HintsColumnFamily-f-588-Index.db (deleted)
      java      32359        root  359r      REG                9,0       313225    4194534 /mnt/cassandra/data/system/HintsColumnFamily-f-587-Data.db (deleted)
      java      32359        root  360r      REG                9,0           22    4194494 /mnt/cassandra/data/system/HintsColumnFamily-f-587-Index.db (deleted)
      java      32359        root  361r      REG                9,0        30452    4194636 /mnt/cassandra/data/system/Schema-f-13-Data.db (deleted)
      java      32359        root  362r      REG                9,0          484    4194635 /mnt/cassandra/data/system/Schema-f-13-Index.db (deleted)
      

      I guess there's a missing dataFile.close() in CompactionManager:648

      Attachments

        1. 2669.txt
          3 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            doubleday Daniel Doubleday
            Jonathan Ellis
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: