fbclient executes callback function twice on two different threads
------------------------------------------------------------------

                 Key: CORE-4795
                 URL: http://tracker.firebirdsql.org/browse/CORE-4795
             Project: Firebird Core
          Issue Type: Bug
          Components: API / Client Library
    Affects Versions: 3.0 Beta 2
         Environment: Windows 8.1 64 bit, Firebird 3.0.0.31839_x64 fbclient.dll 
against Firebird 3.0.0.31839_x64 server
            Reporter: Mark Rotteveel


The firebird 3.0.0.31839 fbclient invokes the callback function twice for each 
triggered event and for cancellation. For example the Jaybird 
TestFBEventManager.testWaitForEventWithOccurrence() shows the following (when 
code is added to show the thread identity):

Queue invoked from Thread: Thread[Thread-2,5,main]
Callback invoked from Thread: Thread[Thread-3,5,main]
Queue invoked from Thread: Thread[Thread-3,5,main]
Callback invoked from Thread: Thread[Thread-4,5,main]
Callback invoked from Thread: Thread[Thread-5,5,main]
Queue invoked from Thread: Thread[Thread-5,5,main]
Cancel invoked from Thread: Thread[Thread-2,5,main]
Callback invoked from Thread: Thread[Thread-6,5,main]
Callback invoked from Thread: Thread[Thread-2,5,main] 

As you can see the initial queue gets one callback (as expected), but the 
second queue receives two callbacks, and the cancel also receives two callbacks.

The same code with the 2.5.4 fbclient shows:

Queue invoked from Thread: Thread[Thread-2,5,main]
Callback invoked from Thread: Thread[Thread-3,5,main]
Queue invoked from Thread: Thread[Thread-3,5,main]
Callback invoked from Thread: Thread[Thread-4,5,main]
Queue invoked from Thread: Thread[Thread-4,5,main]
Cancel invoked from Thread: Thread[Thread-2,5,main]
Callback invoked from Thread: Thread[Thread-2,5,main] 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to