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

cqlsh fails when version number parts are not int

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1.1
    • Legacy/Tools
    • Low

    Description

      alexbool@gibson ~> cqlsh
      Traceback (most recent call last):
        File "/usr/bin/cqlsh", line 1894, in <module>
          main(*read_options(sys.argv[1:], os.environ))
        File "/usr/bin/cqlsh", line 1877, in main
          single_statement=options.execute)
        File "/usr/bin/cqlsh", line 496, in __init__
          self.get_connection_versions()
        File "/usr/bin/cqlsh", line 595, in get_connection_versions
          self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', 1)[0].split('.')[:3]))
      ValueError: invalid literal for int() with base 10: '0~rc2'
      

      I used cassandra 2.1-rc2 debs from Apache repository

      Attachments

        1. CASSANDRA-2.1-7524.patch
          1 kB
          Mikhail Stepura

        Issue Links

          Activity

            People

              mishail Mikhail Stepura
              alexbool Alexander Bulaev
              Mikhail Stepura
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: