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

Integer overflows with file system size reported by Amazon Elastic File System (EFS)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.11, 3.0.15, 3.11.1, 4.0-alpha1, 4.0
    • Legacy/Core
    • None
    • Cassandra in OpenShift running on Amazon EC2 instance with EFS mounted for data

    • Normal

    Description

      When not explicitly configured Cassandra uses nio.FileStore.getTotalSpace to determine the total amount of available space in order to calculate the preferred commit log size. Amazon EFS instances report a filesystem size of 8 EiB when empty. getTotalSpace causes an integer overflow (JDK-8162520) and returns a negative number, resulting in a negative preferred size and causing the checked integer to throw.

      Overriding commitlog_total_space_in_mb is not sufficient as DataDirectory.getAvailableSpace makes use of nio.FileStore.getUsableSpace.

      AMQ-6441 is a comparable issue in ActiveMQ.

      Attachments

        Issue Links

          Activity

            People

              blerer Benjamin Lerer
              hansmi Michael Hanselmann
              Benjamin Lerer
              Alex Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: