[Zope] TM jar missing?

hazmat hazmat@objectrealms.net
Mon, 31 Mar 2003 14:10:24 +0200


its harmless..  just adding overhead and log blather..

zope 2.6.0 wants 'jars' aka as datamanagers to have a sort method.. most 
of the rdb connections/stored procs use a subclass
of lib/python/Shared/DC/ZRDB/TM.py for transaction integration as a 
datamanager, which in 2.6.0 didn't implement the sortKey method.. which 
is fixed in 2.6.1.  so an upgrade should fix this. another possiblity is 
that the DCOracle(2) implements its txn integration directly and doesn't 
supply the requested method,  in which case filing a bug report against 
it with its maintainer would be the right thing to do..

just fyi, here is the implementatio of TM jar sortKey method in 2.6.1

    *def* *sortKey*(self, *ignored):
        *""" The sortKey method is used for recent ZODB compatibility which
            needs to have a known commit order for lock acquisition.  Most
            DA's talking to RDBMS systems do not care about commit order, so
            return the constant 1
        """*
        *return* 1


hth,

-haz



Bo M. Maryniuck wrote:

>I found this in my stupid.log. anybody know WHAT it this? I think it seems like 
>ZODB transaction problems:
>
>=======================================================================
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>2003-03-25T09:21:05 PROBLEM(100) TM jar missing sortKey() method: <Procedure at ora_i18n>
>------
>=======================================================================
>
>  
>