Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Please Help! Pythondriver says: ERR -11608 COMMUNIC sql03_request: wron: msg#00283

db.maxdb

Subject: RE: Please Help! Pythondriver says: ERR -11608 COMMUNIC sql03_request: wrong connection state, state is 'requested'

>sometimes (when many clients are working intensively at the same time)
>I get the following error to the console of the server:
>
>ERR -11608 COMMUNIC sql03_request: wrong connection state,
>state is 'requested'

Please add some traces to vin77.c:requestReceive
#else
rc = i28requestForPython (session, NULL);
/* printf("<session %p>\n", session); */
+ printf("request: communication id: %d; threadid: %x; rc: %d\n",
+ session->reference, pthread_self (), rc);
if (rc == cin01_db_ok) {
Py_BEGIN_ALLOW_THREADS
rc = i28receiveForPython (session, NULL);
+ printf("receive: communication id: %d; threadid: %x; rc: %d\n",
+ session->reference, pthread_self (), rc);
/* printf("</session %p>\n", session); */
Py_END_ALLOW_THREADS
}

You need to include pthread.h somewhere in the file.

It could also be helpful to printf something in connect_sql:
printf ("Python object: %p\n", newObj) is hopefully the same hexid that
you get when printing a session object in python.
printf ("communication id: %d", newObj->nself->reference) would be the
same id that you output above.

Together, this might give some indication about which sessions are
having problems.

> By the way: What does the Garbagecollector with unclosed connections?

Sessions are closed when the last reference is dropped. This will send a
last ROLLBACK command to the kernel. So if a session gets released while
a command is pending, the error message above could happen. But unless
I've fouled up reference counting again, the session object should keep
at least one reference while in the execute call.

Daniel Dittmar

--
Daniel Dittmar
SAP Labs Berlin
daniel.dittmar@xxxxxxx

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo