MySql support for pessimistic transaction

Hello,
I am using kodo 2.5.3 against mySql 4.0.13.
I am experiencing strange behaviors using pessimistic transactions.
Indeed, the Select for update generated by kodo does not seems to lock the
row concerned.
Then, I found in the Kodo documentation that the MySQLDictionary
understands the following property :
SupportsSelectForUpdate (Default: true)
Description: If true, then assume that this MySQL install is capable of
locking data on select, using SELECT ... FOR UPDATE syntax. Otherwise,
assume that this MySQL install cannot lock data. Currently, Kodo JDO
silently ignores requests to obtain pessimistic locks in this situation.
In the future, Kodo JDO will throw an exception if configured with data
store exceptions while this is false.
So, does it means that something special has to be done on the mySql side
to "activate" row locking when using select for update ?
Thank You,
Christophe
PS : In my understanding of rows locking using select for update, rows are
locked also for reading, I guess this is not a bad assumption.

Thank You Marc,
Pessimistic locking works fine when setting TableType=InnoDB.
Christophe
Marc Prud'hommeaux wrote:
Christophe-
In order to use pessimistic locking, you need to use a table type that
supports locking (the defauly "MyISM" tables do not). The "InnoDB" table
types do support locking (as well as other nice features like foreign
keys).
If you have Kodo generating your tables, you can specify that Kodo
should create tables of type InnoDB with the "TableType" dictionary
property (see docs). Otherwise, you would need to migrate the tables on
the database manually.
In article <blls3c$5k7$[email protected]>, Christophe Darville wrote:
Hello,
I am using kodo 2.5.3 against mySql 4.0.13.
I am experiencing strange behaviors using pessimistic transactions.
Indeed, the Select for update generated by kodo does not seems to lock the
row concerned.
Then, I found in the Kodo documentation that the MySQLDictionary
understands the following property :
SupportsSelectForUpdate (Default: true)
Description: If true, then assume that this MySQL install is capable of
locking data on select, using SELECT ... FOR UPDATE syntax. Otherwise,
assume that this MySQL install cannot lock data. Currently, Kodo JDO
silently ignores requests to obtain pessimistic locks in this situation.
In the future, Kodo JDO will throw an exception if configured with data
store exceptions while this is false.
So, does it means that something special has to be done on the mySql side
to "activate" row locking when using select for update ?
Thank You,
Christophe
PS : In my understanding of rows locking using select for update, rows are
locked also for reading, I guess this is not a bad assumption.
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • HT1918 Please contact itunes support for this transaction?

    i created apple ID, when i log in, it says review your account, then i fill out my credit card info, and i click on continue, it says please contact your itunes support for this transaction? I can't download apps but i can log in on apple website

    Welcome to the Apple community.
    Have you tried doing what it says, I'm contacting support.
    Express Lane (select your country, navigate to iCloud help and enter the serial number of one of your devices)

  • Support for Bourgogne Transaction Interface

    Does the Weblogic Server support the transaction extension of EJB Transactions?
    Since Bourgogne introduce new transactional primitives allowing to establish flow control dependencies between transactions, to delegate bean objects from a ransaction to another transaction, and to give permissions to access bean objects locked by a transaction.

    No, there is no support for this transaction model in WebLogic.

  • Weblogic server 9.2 support for WS-Transaction

    Hi,
              Does Weblogic Server9.2 support WS-Transaction 1.1 ? The WL Server data sheet is not specific about the details of compliance. I am trying to find out if there is support for WS-Coordination, WS-Atomic Transaction and WS-Business Activity in Weblogic Server.
              We need to use the Aqualogic Service Bus 2.6 is a distributed WebService Transaction.

    As I know, the answer is "no".

  • HT5057 Why I can't purchase gold in dragon story game? It's ask me to go to Itunes support for complete transaction but I can't find where to complete.

    I can't purchase dragon story gold? It's ask me to go to Itunes Support to complete transaction but I can't find where to complete it.

    You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page . When you've filled in the form you should get a reply from iTunes within 24 or 48 hours.

  • BEA support for WS-Transaction + WS-Coordination

    Hi,
    I know BEA is involved into WS-Transaction/Coordination spec (I have partly read http://dev2dev.bea.com/pub/a/2004/01/ws-transaction.html).
    But I don't know about current WS-Transaction/Coordination spec support in BEA products. And which servers or tools (versions ?) are implementing those specs ?
    Any hint would be welcome.
    Many thanks.
    Dominique

    Have anyone can make a statement on this thread issue ?

  • Contact itunes support for this transaction

    Please fix my account, says I need to contact I tunes to complete this transaction, I have plenty of funds need this fixed ASAP to avail of a sale offer!!!!

    These are user-to-user forums, you are not talking to Apple here - you can contact iTunes support here : http://www.apple.com/support/itunes/contact/

  • Support for Container Managed XA Txn?

    I have been searching the online documentation but have been unable to
              determine if WLS 6.0 Container Managed Transactions include support for XA
              transactions. That is, the EJB container will start a distributed
              transaction. Or, it is necessary to use Bean Managed Transactions.
              

    Carl Lawstuen wrote:
              > I have been searching the online documentation but have been unable to
              > determine if WLS 6.0 Container Managed Transactions include support for XA
              > transactions. That is, the EJB container will start a distributed
              > transaction.
              Yes
              > Or, it is necessary to use Bean Managed Transactions.
              No.
              -- Rob
              

  • The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.

    I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
    The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
    Here is code that illustrates what I am doing:
    DECLARE @MDX varchar(max);
    SET @MDX='
    SELECT
    [Measures].[Extended Service Count]
    } ON COLUMNS,
    NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
    ON ROWS
    FROM (
    SELECT
    {[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
    FROM [MyCube]
    /* Test 1 */
    EXECUTE(@MDX) at SSASLinkedServer;
    /* Test 2 */
    DECLARE @ResultsB TABLE (
    Manufacturer varchar(255)
    , ExtendedServiceCount float
    INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
    Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
    Other articles I've found so far don't seem to apply to my case.  I am not creating any explicit transactions in my code.   When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
    Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
    Any ideas?
    -Tab Alleman

    Hi Tab,
    In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
    http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
    One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Is XA transactions supported for the SOA Suite 10.1.3.4 on weblogic platfor

    There are 2 weblogic domains 1 & 2. Domain 1 hosts the JMS queue and domain 2 hosts the BPEL process. The BPEL process in domain 2 uses JMS adapter to get messages from domain 1. With queues on Weblogic domain 1, is XA transactions supported for the SOA suite 10.1.3.4 BPEL process JMS Adapter on weblogic domain 2?

    There are 2 weblogic domains 1 & 2. Domain 1 hosts the JMS queue and domain 2 hosts the BPEL process. The BPEL process in domain 2 uses JMS adapter to get messages from domain 1. With queues on Weblogic domain 1, is XA transactions supported for the SOA suite 10.1.3.4 BPEL process JMS Adapter on weblogic domain 2?

  • HT201209 i asked for the new apple ID and i got the message that pls check with itune support to complete transaction. what can i do?

    i asked for the new apple ID and i got the message that pls check with itune support to complete transaction. what can i do?

    Contact iTunes Support to complete this transaction.
    http://www.apple.com/support/itunes/contact/

  • Want to purchase something but they keep asking for ITunes support for transaction

    I wanted to purchase something for my game but they keep on asking for iTunes's support for transaction,why and how to solve it?

    Click here and request assistance.
    (69552)

  • The partner transaction manager has disabled its support for remote/network transactions....When inserting during trigger in linked server

    Hi All,
    I am getting below error while inserting into Linked Server (sql2012) thru trigger from sql2008 ....However if i insert the same thru Store Procedure it is inserting successfully....MSDTC service is started on both sql server machines....also both machines
    rebooted....but still i am facing this error.
    OLE DB provider "SQLNCLI" for linked server "XXX.XXX.XXX.XX" returned message "The partner transaction manager has disabled its support for remote/network transactions.".
    Msg 7391, Level 16, State 2, Procedure ins_test, Line 11
    The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "XXX.XXX.XXX.XX" was unable to begin a distributed transaction.
    Could assist to resolve. 
    Regards
    Shehzad

    Hi SHzKhan,
    According to your error message, we need to verify if you configure the MSDTC correctly, When you have more than one SQL Server involved in a Distributed Transaction, you need to make some changes to the default configuration of MSDTC for these distributed
    transactions to succeed. There is a detail about recommending MSDTC settings for using Distributed Transactions in SQL Server, you can review the following article.
    http://support.microsoft.com/kb/2027550/en-us
    There is a similar issue about error 7391, you can refer to the following link.
    http://dba.stackexchange.com/questions/30235/msg-7391-distributed-transactions-dtc-on-sql-server
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the required transaction interface

    Hi All,
    I am trying to execute a stored procedure and store its result in an excel.
    My query to execute stored proc and store sresults in excel
    INSERT INTO
    openrowset('Microsoft.ACE.OLEDB.15.0',
    'Excel 8.0;Database=C:\TC\DataAnalysisFiles\DataAnalysisResult.xls;OLE DB Services=-4','select * from [Sheet1$]')
    EXEC UspUnitTest_Test_CheckDuplicateModelNumberSerialNumber
    I am getting error
    The requested operation could not be performed because OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the required transaction interface.
    I have enabled below things by running scripts
    sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    sp_configure 'Ad Hoc Distributed Queries', 1;
    GO
    RECONFIGURE;
    GO
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.15.0', N'AllowInProcess', 1
     GO
     EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.15.0', N'DynamicParameters', 1
     GO
    Please help and let me know if this can be resolved
    Supriya Thigale

    because OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the
    required transaction interface.
    Hello,
    When you insert data from SQL Server into a linked server, then a distributed transaction should be started and here it seems this fails.
    See
    Distributed Transactions (Database Engine) for more Details +
    Distributed Queries
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Need coding support for Accessing MYSQL stored procedure from java

    Hi every one,
    I need coding support for accessing Mysql stored procedure from java and JSP.
    Please help me
    pranav

    You'd better have a recent version of MySQL, because earlier ones didn't support stored procs.
    If your MySQL and driver support stored procs, maybe you just need a JDBC stored proc tutorial.
    %

Maybe you are looking for

  • Project Details Web Part Unable To Load

    We have recently migrated a customer's Project Server 2007 instance to Project Server 2013. While opening some of the projects in PWA to edit the project custom fields, we encountered an error "This Web Part was unable to load.". Further investigatio

  • How do i back up 2 iPhones to my macbook pro

    I HAVE BACKED UP MY IPHONE 6 TO MY MACBOOK PRO. BUT I WOULD ALSO LIKE TO BACK UP AN IPHONE 4S TO MY MACKBOOK PRO. IS THIS POSSIBLE? IF SO,HOW DO I DO IT?

  • Google Chrome CPU usage almost 100%

    Hey guys, so I recently updated from Snow Leopard directly to Mountain Lion and now I have a issue I can't fix by myself. I'm using a Macbook Pro Mid 2010, 4gig Ram, 2,4 Intel Dualcore, GT 320M - now running OSX 10.8.3 I've got a 27" secondary displa

  • How to capture Leave data in Leave workflow

    Hi All,           I am working on Leave Request workflow. My requirement is to escalate the request based on leave request type like (CL,EL etc.,) and no of days of leave. for suppose if the leave type is CL and no of days is 30 I have to send the re

  • How to Roll back my iPad2 to iOS 7.1

    II've just upgraded to IOS 8.1.2. It became so slow. How can I roll it back to 7.1.1?