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

Login information stored in threads may be reused.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.6.3
    • None
    • Low

    Description

      CassandraServer stores the login information in a ThreadLocal<AccessLevel>.

      CassandraDaemon starts the server with 64 threads. When the first 64 clients connect they should get their own thread, but after that threads will be reused.

      In a quick test I created a Server with 5 threads, and a ThreadLocal<Integer>, and the value is seen by new clients connecting.

      Thrift doesn't destroy the threads when a client disconnects. Maybe an option in Thrift would make more sense to make this method usable.

      Attachments

        Activity

          People

            kenmacd Kenny
            kenmacd Kenny
            Kenny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: