db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-4447) Add internal block mechanism to reject new database connections
Date Tue, 17 Nov 2009 10:26:39 GMT
Add internal block mechanism to reject new database connections
---------------------------------------------------------------

                 Key: DERBY-4447
                 URL: https://issues.apache.org/jira/browse/DERBY-4447
             Project: Derby
          Issue Type: Task
          Components: Miscellaneous
    Affects Versions: 10.6.0.0
            Reporter: Kristian Waagan
            Assignee: Kristian Waagan


When performing certain database operations, it would be useful if Derby
automatically blocked new connections to the database. Examples of such
operations are dropping a database and shutting down a database.

The block access feature would allow for:
 - More graceful shutdowns.
   New connections are rejected, and one could also implement a feature
   for waiting until all existing connections are disconnected.

-  Better error reporting for the clients.
   Instead of getting potentially "random" exceptions, a more
   well-defined set of exceptions can be expected. For instance, getting
   messages about NullPointerExceptions, container X not found,
   and database boot failed should occur more seldom (if at all). Instead the
   clients will get one of the following messages:
    * Database not found (only if the database is dropped).
    * Shutdown exception (comes in two flavors).
    * Access blocked due to reason X.

See the thread http://markmail.org/message/ik7zgxsizg6gnyw6 (posted on derby-dev).
Also, see the attached spec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message