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

Table.open should not propagate IOException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • None

    Description

      Unrecoverable errors should not be checked exceptions; in the case of IOException, it has an analogue, IOError, specifically designed to be re-thrown for unrecoverable problems. Table.open falls into this category.

      We should re-throw as IOError from Table.open and r/m the IOException propagation that affects a ton of code.

      (This is not the only such place we need to change but it is probably the most prominent.)

      Attachments

        1. CASSANDRA-756.patch
          9 kB
          Rodrigo Peinado
        2. CASSANDRA-756-1.patch
          26 kB
          Rodrigo Peinado

        Activity

          People

            rodrigoap Rodrigo Peinado
            jbellis Jonathan Ellis
            Rodrigo Peinado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: