sqlrelay-discussion Mailing List for SQL Relay (Page 6)
Brought to you by:
mused
You can subscribe to this list here.
2005 |
Jan
|
Feb
(20) |
Mar
(27) |
Apr
(17) |
May
(32) |
Jun
(45) |
Jul
(49) |
Aug
(68) |
Sep
(44) |
Oct
(29) |
Nov
(64) |
Dec
(25) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(61) |
Feb
(22) |
Mar
(25) |
Apr
(31) |
May
(18) |
Jun
(28) |
Jul
(19) |
Aug
(16) |
Sep
(8) |
Oct
(17) |
Nov
(32) |
Dec
(4) |
2007 |
Jan
(20) |
Feb
(25) |
Mar
(5) |
Apr
(12) |
May
(11) |
Jun
(18) |
Jul
(16) |
Aug
(22) |
Sep
(37) |
Oct
(20) |
Nov
(11) |
Dec
(2) |
2008 |
Jan
(11) |
Feb
(33) |
Mar
(12) |
Apr
(18) |
May
(22) |
Jun
(31) |
Jul
(23) |
Aug
(6) |
Sep
|
Oct
(10) |
Nov
(22) |
Dec
|
2009 |
Jan
(12) |
Feb
(8) |
Mar
(11) |
Apr
(20) |
May
(18) |
Jun
(7) |
Jul
(27) |
Aug
(2) |
Sep
(10) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2010 |
Jan
(11) |
Feb
(18) |
Mar
(10) |
Apr
(28) |
May
(28) |
Jun
|
Jul
(27) |
Aug
(9) |
Sep
(21) |
Oct
(2) |
Nov
(2) |
Dec
(11) |
2011 |
Jan
|
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
(2) |
Jun
(44) |
Jul
(9) |
Aug
(2) |
Sep
(12) |
Oct
(7) |
Nov
(11) |
Dec
(7) |
2012 |
Jan
(5) |
Feb
|
Mar
(9) |
Apr
(9) |
May
(12) |
Jun
|
Jul
(13) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
(10) |
2013 |
Jan
(21) |
Feb
(3) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(2) |
Jul
(3) |
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
(4) |
2014 |
Jan
(7) |
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: David M. <dav...@fi...> - 2012-03-09 02:42:36
|
Hi Jan, It looks like I introduced a bug in the last release. Here is a quick fix: Edit src/util/sqlrconfigfile.cpp and look for the following code, near line 558: // Filter section, nested (runquery*) case FILTER_TAG: currentname="filter"; if (!charstring::compare(name,"runquery")) { thistag=RUNQUERY_TAG; } else { ok=false; } break; // Filter section, nested (runquery*) case ROUTE_TAG: currentname="route"; if (!charstring::compare(name,"runquery")) { thistag=RUNQUERY_TAG; } else { ok=false; } break; Change instances of "runquery" to "query" and RUNQUERY_TAG to QUERY_TAG, as follows: // Filter section, nested (query*) case FILTER_TAG: currentname="filter"; if (!charstring::compare(name,"query")) { thistag=QUERY_TAG; } else { ok=false; } break; // Filter section, nested (query*) case ROUTE_TAG: currentname="route"; if (!charstring::compare(name,"query")) { thistag=QUERY_TAG; } else { ok=false; } break; I guess I got a little too aggressive with search and replace. With those modifications, it should work as expected. Sorry for the confusion. David Muse dav...@fi... On 03/08/2012 06:31 AM, jan...@id... wrote: > ok sorry. > If I omit the query statements (which is senseless) I am able to start the router instance. > > # sqlr-start -id test -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > Starting listener: > sqlr-listener -id test -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > > Starting 1 connections to defaultid : > sqlr-connection-router -id test -connectionid defaultid -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > > Starting scaler: > sqlr-scaler -id test -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > > cache manager already running. > [...] > > But how can I use the query patterns sucessfully ? > > kind regards, > > --- > > Jan > ________________________________________ > Von: Zeller, Jan (ID) > Gesendet: Donnerstag, 8. März 2012 12:14 > An: sql...@li... > Betreff: r/w splitting configuration question > > dear sqlrelay list, > > i try to configure r/w splitting. > > i am able to start the following instances "master"& "slave" but not the router instance called "test". > > The error message is : > > unexpected tag<query> within<route> > Couldn't parse config file /opt/sqlrelay-0.44/etc/sqlrelay.conf. > Couldn't find id test. > > > By the way what is the purpose of "sqlr-connection-router" ? > Should "sqlr-connection-router" or "sqlr-start" be used to start the router instance ? > Anyway it fails with both programs. > > The config file used is nearly the same as stated on http://sqlrelay.sourceforge.net/sqlrelay/router.html > > > # sqlr-start -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > [...] > # sqlr-start -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > [...] > > # pgrep -lf sql > 27998 sqlr-listener -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > 28028 sqlr-connection-mysql -id master -connectionid db1 -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > 28060 sqlr-scaler -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > 28067 sqlr-cachemanager > 29266 sqlr-listener -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > 29271 sqlr-connection-mysql -id slave -connectionid db1 -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > 29288 sqlr-scaler -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf > > What am I doing wrong ? > Any hints ? > > kind regards, > > Jan > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com |
From: David M. <dav...@fi...> - 2012-03-08 18:15:21
|
Thanks Renat. I've been really busy lately but I'll get this patch in as soon as possible. Dave On 03/07/2012 05:39 AM, Renat Sabitov wrote: > Hi David, > > I ported my patch for signal handling to 0.44. > > The session_count patch is just a code that is made in mysql_ part the > same thing as in sqlrelay_ part. > > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > > > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com |
From: <jan...@id...> - 2012-03-08 11:33:48
|
dear sqlrelay list, i try to configure r/w splitting. i am able to start the following instances "master" & "slave" but not the router instance called "test". The error message is : unexpected tag <query> within <route> Couldn't parse config file /opt/sqlrelay-0.44/etc/sqlrelay.conf. Couldn't find id test. By the way what is the purpose of "sqlr-connection-router" ? Should "sqlr-connection-router" or "sqlr-start" be used to start the router instance ? Anyway it fails with both programs. The config file used is nearly the same as stated on http://sqlrelay.sourceforge.net/sqlrelay/router.html # sqlr-start -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf [...] # sqlr-start -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf [...] # pgrep -lf sql 27998 sqlr-listener -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 28028 sqlr-connection-mysql -id master -connectionid db1 -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 28060 sqlr-scaler -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 28067 sqlr-cachemanager 29266 sqlr-listener -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 29271 sqlr-connection-mysql -id slave -connectionid db1 -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 29288 sqlr-scaler -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf What am I doing wrong ? Any hints ? kind regards, Jan |
From: <jan...@id...> - 2012-03-08 11:32:13
|
ok sorry. If I omit the query statements (which is senseless) I am able to start the router instance. # sqlr-start -id test -config /opt/sqlrelay-0.44/etc/sqlrelay.conf Starting listener: sqlr-listener -id test -config /opt/sqlrelay-0.44/etc/sqlrelay.conf Starting 1 connections to defaultid : sqlr-connection-router -id test -connectionid defaultid -config /opt/sqlrelay-0.44/etc/sqlrelay.conf Starting scaler: sqlr-scaler -id test -config /opt/sqlrelay-0.44/etc/sqlrelay.conf cache manager already running. [...] But how can I use the query patterns sucessfully ? kind regards, --- Jan ________________________________________ Von: Zeller, Jan (ID) Gesendet: Donnerstag, 8. März 2012 12:14 An: sql...@li... Betreff: r/w splitting configuration question dear sqlrelay list, i try to configure r/w splitting. i am able to start the following instances "master" & "slave" but not the router instance called "test". The error message is : unexpected tag <query> within <route> Couldn't parse config file /opt/sqlrelay-0.44/etc/sqlrelay.conf. Couldn't find id test. By the way what is the purpose of "sqlr-connection-router" ? Should "sqlr-connection-router" or "sqlr-start" be used to start the router instance ? Anyway it fails with both programs. The config file used is nearly the same as stated on http://sqlrelay.sourceforge.net/sqlrelay/router.html # sqlr-start -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf [...] # sqlr-start -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf [...] # pgrep -lf sql 27998 sqlr-listener -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 28028 sqlr-connection-mysql -id master -connectionid db1 -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 28060 sqlr-scaler -id master -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 28067 sqlr-cachemanager 29266 sqlr-listener -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 29271 sqlr-connection-mysql -id slave -connectionid db1 -config /opt/sqlrelay-0.44/etc/sqlrelay.conf 29288 sqlr-scaler -id slave -config /opt/sqlrelay-0.44/etc/sqlrelay.conf What am I doing wrong ? Any hints ? kind regards, Jan |
From: Renat S. <sr...@st...> - 2012-03-07 10:56:43
|
Hi David, I ported my patch for signal handling to 0.44. The session_count patch is just a code that is made in mysql_ part the same thing as in sqlrelay_ part. -- Renat Sabitov e-mail: sr...@st... Stack Soft jid: sr...@ja... |
From: djames.suhanko <dja...@gm...> - 2012-01-24 18:01:51
|
Hello, everybody! I'm sorry my terrible english (isn't my native language, how can you see). I was trying to run the sqlr-start from /usr/local/firstworks/bin/sqlr-start. In the cron, I did this ( to run at 1 minute): */1 * * * * /usr/local/firstworks/bin/sqlr-start -id oracleTemp But is not working. In a terminal this works fine (typing the command in a terminal). I has been trying many ways, like writes a shell script. I did a Qt binary calling this command with QProcess, but nothing has giving results. Do you have some sugestions? -- Djames Suhanko LinuxUser 158.760 |
From: David M. <dav...@fi...> - 2012-01-18 06:31:53
|
Hello all, SQL Relay 0.44 is out. This release introduces a host of new features. * The MySQL Drop-In Replacement Library has been greatly improved and updated to support MySQL 5.2 and the MySQL statement API. * The SQL Relay client API's support new methods to get databases, tables and columns, returning lists similar to those returned by "show databases", "show tables" and "describe table" queries. * Bind Variable Translation is now supported. If your queries have ?'s in them but you want to aim them at a database that uses colon-delimited queries, or vice-versa, SQL Relay can remap the variables automatically. * SQL Relay can now fake transaction blocks. If you are migrating from a DB that is in autocommit mode by default and requires "begin" or "start" queries to begin a transaction to a database that is always in a transaction, SQL Relay can fake the behavior of the first database and make the new database appear to support transaction blocks. * The sqlrsh command line client now supports bind variables. * selectDatabase()/getCurrentDatabase() methods have been added to all API's, providing a database agnostic method for switching schemas/db's. * The fakebinds connect string option has been replaced by a parameter at the instance level and all databases support faking of input binds now. * getLastInsertId() has been added to all API's. If the database supports it natively then the native function is used. If the database doesn't support it then a stored procedure can be specified to fake it. * A set of queries can be run at the beginning and end of each client session now. This is all in addition to the standard number of bug fixes and optimizations. Give it a try, report any bugs that you find! David Muse dav...@fi... _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com |
From: David M. <dav...@fi...> - 2012-01-12 06:00:15
|
Hello, Honestly, I've never tried to connect SQL Relay to pgpool. As I understand it, pgpool is allegedly transparent to a postgresql application, so I would expect it to "just work" but I don't know for sure. By default, pgpool runs on a different socket and port than postgresql, so you would need to be sure to configure sqlrelay to use the correct socket/port. I'll try it out when I get a chance and let you know what I find. I'm not sure when I'll have the chance though. Dave dav...@fi... On 01/11/2012 01:32 AM, Chung-Wen Cho wrote: > > Hi, > I have a project using mysql cluster + sqlrelay. Now, I want to > replace mysql by postgresql and use pgpool for data replication. > However, I have alrealy some APIs embedded some sqlrelay-library > codes. I don't want to rewrite these APIs. Therefore, I have to keep > sqlrelay and the connection steam from a query to postgresql may look > like this: > An API (query) --------> sqlrelay ---------> pgpool -----------> > postgresqls. > My question is that can sqlrealy directly (or indirectly) connect to > pgpool? > I have tried the connection between sqlrelay and pgpool but I failed. > Thank you for your kindly response > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com |
From: lee a. <an...@gm...> - 2012-01-11 19:34:17
|
Dear david I had found the same problem as your suppose. Your early reply would be highly appreciated. Thks for ur help ^__^ 2011/12/29 David Muse <dav...@fi...> > Hello, > > The most likely cause of this is that someone has run a "set names > 'ascii'" query or something similar. > > The default mysql client character set supports utf-8 characters, but if > the character set is manually changed to something that does not, such as > ascii, then utf-8 characters will be returned as ?'s. For example: > > [dmuse@db ~]$ mysql -utestuser -ptestpassword testdb > Reading table information for completion of table and column names > You can turn off this feature to get a quicker startup with -A > > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 9173 > Server version: 5.1.58 Source distribution > > Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights > reserved. > This software comes with ABSOLUTELY NO WARRANTY. This is free software, > and you are welcome to modify and redistribute it under the GPL v2 license > > Type 'help;' or '\h' for help. Type '\c' to clear the current input > statement. > > mysql> select * from testutf8; > +--------+ > | col1 | > +--------+ > | Falló | > +--------+ > 1 row in set (0.00 sec) > > mysql> set names 'ascii'; > Query OK, 0 rows affected (0.00 sec) > > mysql> select * from testutf8; > +--------+ > | col1 | > +--------+ > | Fall?? | > +--------+ > 1 row in set (0.00 sec) > > mysql> > > > The character set is reset to the default every time you log out of mysql > and back in. > > The problem is that sql relay never logs out or back in. So, if someone > runs a "set names" query (or similar) then it will persist until someone > runs a query to reset the character set or restarts sqlrelay. > > For the next release, I'm working on a way to reset various things at > session-end, including the character set. An interim solution though would > be to find the app that changes the character set and add a query to reset > it when it closes the connection. > > I hope this helps. Let me know if this is a workable solution for you or > not. > > David Muse > dav...@fi... > > > On 12/21/2011 02:11 AM, lee angus wrote: > > Dear all > We are using sqlrely with mysql. > The beginnng,querey UTF8 string retun correctlly on our production > machine. > After a few days,UFT8 string become "??????". > Then,we restart sqlrelay daemond,and UTF8 string retun correctlly again. > When the problem occured,we tried to use sqlrsh to execute query,the > UTF8 string has become "???????". > > > My env as below > Sqlrelay 0.43 > rudiments 0.34 > Mysql client 5.1.59 > MariaDB 5.1.53 > > Any suggestion will be very appreciated !! > > > > > > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/joinhttp://p.sf.net/sfu/intel-appdev > > > > _______________________________________________ > Sqlrelay-discussion mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > |
From: Chung-Wen C. <chu...@gm...> - 2012-01-11 06:32:50
|
Hi, I have a project using mysql cluster + sqlrelay. Now, I want to replace mysql by postgresql and use pgpool for data replication. However, I have alrealy some APIs embedded some sqlrelay-library codes. I don't want to rewrite these APIs. Therefore, I have to keep sqlrelay and the connection steam from a query to postgresql may look like this: An API (query) --------> sqlrelay ---------> pgpool -----------> postgresqls. My question is that can sqlrealy directly (or indirectly) connect to pgpool? I have tried the connection between sqlrelay and pgpool but I failed. Thank you for your kindly response |
From: David M. <dav...@fi...> - 2011-12-29 08:08:35
|
Thomas, I see that you have debugging turned on... I recently fixed a bug that could cause this behavior if debugging of the connection is enabled. The fix is in CVS. A workaround is to disable debugging of the connection in the sqlrelay.conf file. Set debug="none" or debug="listener" but not debug="listener_and_connection" or debug="connection". You can also apply this fix directly. Edit src/connection/sqlrconnection/returnresultsetdata.C and around line 67 you should see code like: cursor->returnRow(); if (dbgfile.debugEnabled()) { debugstr=new stringbuffer(); dbgfile.debugPrint("connection",3, debugstr->getString()); delete debugstr; } change it to: if (dbgfile.debugEnabled()) { debugstr=new stringbuffer(); } cursor->returnRow(); if (dbgfile.debugEnabled()) { dbgfile.debugPrint("connection",3, debugstr->getString()); delete debugstr; } Let me know if that takes care of the problem or not. Dave dav...@fi... On 12/05/2011 03:19 AM, Thomas Stein wrote: > Am 02.12.11 19:29, schrieb David Muse: >> Hi Thomas, > Hi David. > >> I have recently done a LOT of work on the MySQL drop-in replacement >> library. MySQL recently made a bunch of changes under-the-hood and I >> had to make changes to keep up with them. It's possible that the >> problem you are encountering is a result of all that. Try the code in >> CVS and see if it works better. >> >> Here are the instructions for checking out the code from CVS: >> >> export >> CVSROOT=:pserver:ano...@sq...:/cvsroot/sqlrelay >> cvs login >> cvs checkout sqlrelay >> >> First though, try explicitly using the socket parameter with the mysql >> program: >> >> app1 / # mysql -h localhost -P 9000 --socket=/tmp/mysqltest.socket >> --user=user1 --password=password1 > Hm. Tried the cvs version but still the same: > > app1 etc # mysql -h localhost -P 9000 --socket=/tmp/mysqltest.socket > --user=user1 --password=password1 > Welcome to the MySQL monitor. Commands end with ; or \g. > Debugging to: /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.7369 > (pid=7303) Abnormal termination: signal 11 received > Your MySQL connection id is 0 > Server version: 5.1.22 > > Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. > This software comes with ABSOLUTELY NO WARRANTY. This is free software, > and you are welcome to modify and redistribute it under the GPL v2 license > > Type 'help;' or '\h' for help. Type '\c' to clear the current input > statement. > > mysql> show databases; > app1 etc # > > By the way. What exactly ist the sqlrelay.dtd for? I really didn't > figured that out. > > cheers > t. > >> I think recent versions of mysql fall back to a default socket of >> /tmp/mysql.sock (or something like that) and ignore the specified port >> if the file exists. So, in effect, without specifying the port, the >> mysql program ends up trying to talk to the mysql server rather than SQL >> Relay, but using the SQL Relay protocol. >> >> Let me know if you run into any issues. >> >> David Muse >> dav...@fi... >> >> On 12/02/2011 10:35 AM, Thomas Stein wrote: >>> Am 02.12.11 16:03, schrieb Thomas Stein: >>>> Hello. >>>> >>>> First of all. Interesting piece of software! >>>> >>>> And now my first question. >>>> >>>> I am able to use: >>>> >>>> app1 etc # query 127.0.0.1 9000 /tmp/mysqltest.socket user1 password1 >>>> "show databases;" >>>> "information_schema" >>>> "oxid45" >>>> "oxidsample" >>>> app1 etc # >>>> >>>> But is it also possible to connect via regular mysql command to >>>> sqlrelay? Something like: >>>> >>>> app1 etc # mysql -h 127.0.0.1 -P 9000 -uuser1 -ppasswrd1 >>>> >>>> Is that possible at all? I think i didn't understand that part. Any help >>>> appreciated. >>> Answering my question. Yes it is possible. But now i have another problem: >>> >>> LD_PRELOAD=/usr/local/firstworks/lib/libmysql51sqlrelay.so >>> export LD_PRELOAD >>> >>> app1 / # mysql -h localhost -P 9000 --user=user1 --password=password1 >>> Welcome to the MySQL monitor. Commands end with ; or \g. >>> Debugging to: /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 >>> (pid=3469) Abnormal termination: signal 11 received >>> Your MySQL connection id is 0 >>> Server version: 5.1.22 >>> >>> Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. >>> This software comes with ABSOLUTELY NO WARRANTY. This is free software, >>> and you are welcome to modify and redistribute it under the GPL v2 license >>> >>> Type 'help;' or '\h' for help. Type '\c' to clear the current input >>> statement. >>> >>> mysql> >>> >>> The connection seems immediately broken. >>> /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 shows no >>> errors but the client connection seem to remain: >>> >>> app1 / # sqlr-status -id oxidtest >>> Warning: using default connectionid. >>> Open Server Connections: 3 >>> Opened Server Connections: 3 >>> >>> Open Client Connections: 1 >>> Opened Client Connections: 1 >>> >>> Open Server Cursors: 15 >>> Opened Server Cursors: 15 >>> >>> Times New Cursor Used: 1 >>> Times Cursor Reused: 0 >>> >>> Total Queries: 0 >>> Total Errors: 0 >>> >>> Forked Listeners: 0 >>> >>> Scaler's view: >>> Connections: 2 >>> Sessions: 1 >>> >>> Semaphores: >>> +---------------------------------------------+ >>> | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | >>> +---+---+---+---+---+---+---+---+---+---+-----+ >>> | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | >>> +---------------------------------------------+ >>> >>> app1 / # >>> >>> Hm. >>> >>> >>>> best regards >>>> thomas >>>> >>>> >>>> Thomas Stein >>>> Systems Engineer >>>> >>> Thomas Stein >>> Systems Engineer >>> >> >> >> _______________________________________________________ >> Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting >> http://www.doteasy.com >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Sqlrelay-discussion mailing list >> Sql...@li... >> https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > Thomas Stein > Systems Engineer > _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com |
From: David M. <dav...@fi...> - 2011-12-29 06:44:04
|
Hello, The most likely cause of this is that someone has run a "set names 'ascii'" query or something similar. The default mysql client character set supports utf-8 characters, but if the character set is manually changed to something that does not, such as ascii, then utf-8 characters will be returned as ?'s. For example: [dmuse@db ~]$ mysql -utestuser -ptestpassword testdb Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9173 Server version: 5.1.58 Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select * from testutf8; +--------+ | col1 | +--------+ | Falló | +--------+ 1 row in set (0.00 sec) mysql> set names 'ascii'; Query OK, 0 rows affected (0.00 sec) mysql> select * from testutf8; +--------+ | col1 | +--------+ | Fall?? | +--------+ 1 row in set (0.00 sec) mysql> The character set is reset to the default every time you log out of mysql and back in. The problem is that sql relay never logs out or back in. So, if someone runs a "set names" query (or similar) then it will persist until someone runs a query to reset the character set or restarts sqlrelay. For the next release, I'm working on a way to reset various things at session-end, including the character set. An interim solution though would be to find the app that changes the character set and add a query to reset it when it closes the connection. I hope this helps. Let me know if this is a workable solution for you or not. David Muse dav...@fi... On 12/21/2011 02:11 AM, lee angus wrote: > Dear all > We are using sqlrely with mysql. > The beginnng,querey UTF8 string retun correctlly on our production > machine. > After a few days,UFT8 string become "??????". > Then,we restart sqlrelay daemond,and UTF8 string retun correctlly again. > When the problem occured,we tried to use sqlrsh to execute query,the > UTF8 string has become "???????". > > My env as below > Sqlrelay 0.43 > rudiments 0.34 > Mysql client 5.1.59 > MariaDB 5.1.53 > > Any suggestion will be very appreciated !! > > > > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > > > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com |
From: lee a. <an...@gm...> - 2011-12-21 07:11:28
|
Dear all We are using sqlrely with mysql. The beginnng,querey UTF8 string retun correctlly on our production machine. After a few days,UFT8 string become "??????". Then,we restart sqlrelay daemond,and UTF8 string retun correctlly again. When the problem occured,we tried to use sqlrsh to execute query,the UTF8 string has become "???????". My env as below Sqlrelay 0.43 rudiments 0.34 Mysql client 5.1.59 MariaDB 5.1.53 Any suggestion will be very appreciated !! |
From: Thomas S. <t....@sy...> - 2011-12-05 08:19:45
|
Am 02.12.11 19:29, schrieb David Muse: > Hi Thomas, Hi David. > I have recently done a LOT of work on the MySQL drop-in replacement > library. MySQL recently made a bunch of changes under-the-hood and I > had to make changes to keep up with them. It's possible that the > problem you are encountering is a result of all that. Try the code in > CVS and see if it works better. > > Here are the instructions for checking out the code from CVS: > > export > CVSROOT=:pserver:ano...@sq...:/cvsroot/sqlrelay > cvs login > cvs checkout sqlrelay > > First though, try explicitly using the socket parameter with the mysql > program: > > app1 / # mysql -h localhost -P 9000 --socket=/tmp/mysqltest.socket > --user=user1 --password=password1 Hm. Tried the cvs version but still the same: app1 etc # mysql -h localhost -P 9000 --socket=/tmp/mysqltest.socket --user=user1 --password=password1 Welcome to the MySQL monitor. Commands end with ; or \g. Debugging to: /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.7369 (pid=7303) Abnormal termination: signal 11 received Your MySQL connection id is 0 Server version: 5.1.22 Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; app1 etc # By the way. What exactly ist the sqlrelay.dtd for? I really didn't figured that out. cheers t. > I think recent versions of mysql fall back to a default socket of > /tmp/mysql.sock (or something like that) and ignore the specified port > if the file exists. So, in effect, without specifying the port, the > mysql program ends up trying to talk to the mysql server rather than SQL > Relay, but using the SQL Relay protocol. > > Let me know if you run into any issues. > > David Muse > dav...@fi... > > On 12/02/2011 10:35 AM, Thomas Stein wrote: >> Am 02.12.11 16:03, schrieb Thomas Stein: >>> Hello. >>> >>> First of all. Interesting piece of software! >>> >>> And now my first question. >>> >>> I am able to use: >>> >>> app1 etc # query 127.0.0.1 9000 /tmp/mysqltest.socket user1 password1 >>> "show databases;" >>> "information_schema" >>> "oxid45" >>> "oxidsample" >>> app1 etc # >>> >>> But is it also possible to connect via regular mysql command to >>> sqlrelay? Something like: >>> >>> app1 etc # mysql -h 127.0.0.1 -P 9000 -uuser1 -ppasswrd1 >>> >>> Is that possible at all? I think i didn't understand that part. Any help >>> appreciated. >> Answering my question. Yes it is possible. But now i have another problem: >> >> LD_PRELOAD=/usr/local/firstworks/lib/libmysql51sqlrelay.so >> export LD_PRELOAD >> >> app1 / # mysql -h localhost -P 9000 --user=user1 --password=password1 >> Welcome to the MySQL monitor. Commands end with ; or \g. >> Debugging to: /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 >> (pid=3469) Abnormal termination: signal 11 received >> Your MySQL connection id is 0 >> Server version: 5.1.22 >> >> Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. >> This software comes with ABSOLUTELY NO WARRANTY. This is free software, >> and you are welcome to modify and redistribute it under the GPL v2 license >> >> Type 'help;' or '\h' for help. Type '\c' to clear the current input >> statement. >> >> mysql> >> >> The connection seems immediately broken. >> /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 shows no >> errors but the client connection seem to remain: >> >> app1 / # sqlr-status -id oxidtest >> Warning: using default connectionid. >> Open Server Connections: 3 >> Opened Server Connections: 3 >> >> Open Client Connections: 1 >> Opened Client Connections: 1 >> >> Open Server Cursors: 15 >> Opened Server Cursors: 15 >> >> Times New Cursor Used: 1 >> Times Cursor Reused: 0 >> >> Total Queries: 0 >> Total Errors: 0 >> >> Forked Listeners: 0 >> >> Scaler's view: >> Connections: 2 >> Sessions: 1 >> >> Semaphores: >> +---------------------------------------------+ >> | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | >> +---+---+---+---+---+---+---+---+---+---+-----+ >> | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | >> +---------------------------------------------+ >> >> app1 / # >> >> Hm. >> >> >>> best regards >>> thomas >>> >>> >>> Thomas Stein >>> Systems Engineer >>> >> >> Thomas Stein >> Systems Engineer >> > > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion Thomas Stein Systems Engineer -- SysEleven GmbH Umspannwerk - Aufgang C Ohlauer Straße 43 10999 Berlin Tel +49 30 233 2012 0 Fax +49 30 616 7555 0 http://www.syseleven.de http://www.facebook.com/SysEleven Aktueller System-Status immer unter: http://www.twitter.com/syseleven Firmensitz: Berlin Registergericht: AG Berlin Charlottenburg, HRB 108571 B Geschäftsführer: Marc Korthaus |
From: David M. <dav...@fi...> - 2011-12-02 18:31:10
|
Hi Thomas, I have recently done a LOT of work on the MySQL drop-in replacement library. MySQL recently made a bunch of changes under-the-hood and I had to make changes to keep up with them. It's possible that the problem you are encountering is a result of all that. Try the code in CVS and see if it works better. Here are the instructions for checking out the code from CVS: export CVSROOT=:pserver:ano...@sq...:/cvsroot/sqlrelay cvs login cvs checkout sqlrelay First though, try explicitly using the socket parameter with the mysql program: app1 / # mysql -h localhost -P 9000 --socket=/tmp/mysqltest.socket --user=user1 --password=password1 I think recent versions of mysql fall back to a default socket of /tmp/mysql.sock (or something like that) and ignore the specified port if the file exists. So, in effect, without specifying the port, the mysql program ends up trying to talk to the mysql server rather than SQL Relay, but using the SQL Relay protocol. Let me know if you run into any issues. David Muse dav...@fi... On 12/02/2011 10:35 AM, Thomas Stein wrote: > Am 02.12.11 16:03, schrieb Thomas Stein: >> Hello. >> >> First of all. Interesting piece of software! >> >> And now my first question. >> >> I am able to use: >> >> app1 etc # query 127.0.0.1 9000 /tmp/mysqltest.socket user1 password1 >> "show databases;" >> "information_schema" >> "oxid45" >> "oxidsample" >> app1 etc # >> >> But is it also possible to connect via regular mysql command to >> sqlrelay? Something like: >> >> app1 etc # mysql -h 127.0.0.1 -P 9000 -uuser1 -ppasswrd1 >> >> Is that possible at all? I think i didn't understand that part. Any help >> appreciated. > Answering my question. Yes it is possible. But now i have another problem: > > LD_PRELOAD=/usr/local/firstworks/lib/libmysql51sqlrelay.so > export LD_PRELOAD > > app1 / # mysql -h localhost -P 9000 --user=user1 --password=password1 > Welcome to the MySQL monitor. Commands end with ; or \g. > Debugging to: /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 > (pid=3469) Abnormal termination: signal 11 received > Your MySQL connection id is 0 > Server version: 5.1.22 > > Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. > This software comes with ABSOLUTELY NO WARRANTY. This is free software, > and you are welcome to modify and redistribute it under the GPL v2 license > > Type 'help;' or '\h' for help. Type '\c' to clear the current input > statement. > > mysql> > > The connection seems immediately broken. > /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 shows no > errors but the client connection seem to remain: > > app1 / # sqlr-status -id oxidtest > Warning: using default connectionid. > Open Server Connections: 3 > Opened Server Connections: 3 > > Open Client Connections: 1 > Opened Client Connections: 1 > > Open Server Cursors: 15 > Opened Server Cursors: 15 > > Times New Cursor Used: 1 > Times Cursor Reused: 0 > > Total Queries: 0 > Total Errors: 0 > > Forked Listeners: 0 > > Scaler's view: > Connections: 2 > Sessions: 1 > > Semaphores: > +---------------------------------------------+ > | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | > +---+---+---+---+---+---+---+---+---+---+-----+ > | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | > +---------------------------------------------+ > > app1 / # > > Hm. > > >> best regards >> thomas >> >> >> Thomas Stein >> Systems Engineer >> > > Thomas Stein > Systems Engineer > _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com |
From: Thomas S. <t....@sy...> - 2011-12-02 15:35:36
|
Am 02.12.11 16:03, schrieb Thomas Stein: > Hello. > > First of all. Interesting piece of software! > > And now my first question. > > I am able to use: > > app1 etc # query 127.0.0.1 9000 /tmp/mysqltest.socket user1 password1 > "show databases;" > "information_schema" > "oxid45" > "oxidsample" > app1 etc # > > But is it also possible to connect via regular mysql command to > sqlrelay? Something like: > > app1 etc # mysql -h 127.0.0.1 -P 9000 -uuser1 -ppasswrd1 > > Is that possible at all? I think i didn't understand that part. Any help > appreciated. Answering my question. Yes it is possible. But now i have another problem: LD_PRELOAD=/usr/local/firstworks/lib/libmysql51sqlrelay.so export LD_PRELOAD app1 / # mysql -h localhost -P 9000 --user=user1 --password=password1 Welcome to the MySQL monitor. Commands end with ; or \g. Debugging to: /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 (pid=3469) Abnormal termination: signal 11 received Your MySQL connection id is 0 Server version: 5.1.22 Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> The connection seems immediately broken. /usr/local/firstworks/var/sqlrelay/debug/sqlr-listener.3484 shows no errors but the client connection seem to remain: app1 / # sqlr-status -id oxidtest Warning: using default connectionid. Open Server Connections: 3 Opened Server Connections: 3 Open Client Connections: 1 Opened Client Connections: 1 Open Server Cursors: 15 Opened Server Cursors: 15 Times New Cursor Used: 1 Times Cursor Reused: 0 Total Queries: 0 Total Errors: 0 Forked Listeners: 0 Scaler's view: Connections: 2 Sessions: 1 Semaphores: +---------------------------------------------+ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | +---+---+---+---+---+---+---+---+---+---+-----+ | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | +---------------------------------------------+ app1 / # Hm. > best regards > thomas > > > Thomas Stein > Systems Engineer > Thomas Stein Systems Engineer -- SysEleven GmbH Umspannwerk - Aufgang C Ohlauer Straße 43 10999 Berlin Tel +49 30 233 2012 0 Fax +49 30 616 7555 0 http://www.syseleven.de http://www.facebook.com/SysEleven Aktueller System-Status immer unter: http://www.twitter.com/syseleven Firmensitz: Berlin Registergericht: AG Berlin Charlottenburg, HRB 108571 B Geschäftsführer: Marc Korthaus |
From: Thomas S. <t....@sy...> - 2011-12-02 15:34:19
|
Hello. First of all. Interesting piece of software! And now my first question. I am able to use: app1 etc # query 127.0.0.1 9000 /tmp/mysqltest.socket user1 password1 "show databases;" "information_schema" "oxid45" "oxidsample" app1 etc # But is it also possible to connect via regular mysql command to sqlrelay? Something like: app1 etc # mysql -h 127.0.0.1 -P 9000 -uuser1 -ppasswrd1 Is that possible at all? I think i didn't understand that part. Any help appreciated. best regards thomas Thomas Stein Systems Engineer -- SysEleven GmbH Umspannwerk - Aufgang C Ohlauer Straße 43 10999 Berlin Tel +49 30 233 2012 0 Fax +49 30 616 7555 0 http://www.syseleven.de http://www.facebook.com/SysEleven Aktueller System-Status immer unter: http://www.twitter.com/syseleven Firmensitz: Berlin Registergericht: AG Berlin Charlottenburg, HRB 108571 B Geschäftsführer: Marc Korthaus |
From: Gaurav S. <gau...@go...> - 2011-11-28 20:36:05
|
Hi, Trying to get sqlrelay working on CentOS 5.7 with Postgresql version 8.1.23. When a command is sent to the database, the sqlrsh crashes with the trace below. Any help would be highly appreciated. Thanks, Gaurav [root@b109-226 bin]# ./sqlrsh -id postgresqltest SQLRShell - Version 0.22 Connected to: localhost:9900 as postgresqltest type help; for a help. 0> SELECT NOW(); *** glibc detected *** sqlr-connection-postgresql: malloc(): memory corruption: 0x0a0c2738 *** ======= Backtrace: ========= /lib/libc.so.6[0x79d3fd] /lib/libc.so.6(__libc_malloc+0x67)[0x79efb7] /usr/lib/libstdc++.so.6(_Znwj+0x27)[0x480af7] /usr/lib/libstdc++.so.6(_Znaj+0x1d)[0x480c2d] /usr/local/firstworks/lib/librudiments-0.34.so.1(_ZN9rudiments14variablebufferC2Ejj+0x2b)[0x3a33c1] /usr/local/firstworks/lib/librudiments-0.34.so.1(_ZN9rudiments12stringbufferC1Ev+0x2e)[0x39fc9e] /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1(_ZN18sqlrconnection_svr19returnResultSetDataEP14sqlrcursor_svr+0x430)[0xe3bc10] /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1(_ZN18sqlrconnection_svr15newQueryCommandEP14sqlrcursor_svr+0x8e)[0xe37d2e] /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1(_ZN18sqlrconnection_svr13clientSessionEv+0x1ec)[0xe35ea2] /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1(_ZN18sqlrconnection_svr6listenEv+0xc7)[0xe3465b] /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1(_ZN18sqlrconnection_svr4mainEiPPKcPS_+0x104)[0xe3e774] sqlr-connection-postgresql[0x804d6d5] /lib/libc.so.6(__libc_start_main+0xdc)[0x748e9c] sqlr-connection-postgresql(_ZN14sqlrcursor_svr34sql_injection_detection_egress_ldbEv+0x85)[0x804a911] ======= Memory map: ======== 00110000-0023a000 r-xp 00000000 fd:00 1899895 /lib/libcrypto.so.0.9.8e 0023a000-0024d000 rwxp 00129000 fd:00 1899895 /lib/libcrypto.so.0.9.8e 0024d000-00251000 rwxp 0024d000 00:00 0 00251000-0026d000 r-xp 00000000 fd:00 3209086 /usr/local/firstworks/lib/libsqlrclient-0.43.so.1.0.0 0026d000-0026e000 rwxp 0001c000 fd:00 3209086 /usr/local/firstworks/lib/libsqlrclient-0.43.so.1.0.0 0026e000-00278000 r-xp 00000000 fd:00 1896913 /lib/libnss_files-2.5.so 00278000-00279000 r-xp 00009000 fd:00 1896913 /lib/libnss_files-2.5.so 00279000-0027a000 rwxp 0000a000 fd:00 1896913 /lib/libnss_files-2.5.so 00346000-003c9000 r-xp 00000000 fd:00 3208759 /usr/local/firstworks/lib/librudiments-0.34.so.1.0.0 003c9000-003cc000 rwxp 00082000 fd:00 3208759 /usr/local/firstworks/lib/librudiments-0.34.so.1.0.0 003cc000-004ac000 r-xp 00000000 fd:00 3050736 /usr/lib/libstdc++.so.6.0.8 004ac000-004b0000 r-xp 000df000 fd:00 3050736 /usr/lib/libstdc++.so.6.0.8 004b0000-004b1000 rwxp 000e3000 fd:00 3050736 /usr/lib/libstdc++.so.6.0.8 004b1000-004b7000 rwxp 004b1000 00:00 0 00656000-00666000 r-xp 00000000 fd:00 3209064 /usr/local/firstworks/lib/libsqlrutil-0.43.so.1.0.0 00666000-00667000 rwxp 0000f000 fd:00 3209064 /usr/local/firstworks/lib/libsqlrutil-0.43.so.1.0.0 00714000-0072f000 r-xp 00000000 fd:00 1899871 /lib/ld-2.5.so 0072f000-00730000 r-xp 0001a000 fd:00 1899871 /lib/ld-2.5.so 00730000-00731000 rwxp 0001b000 fd:00 1899871 /lib/ld-2.5.so 00733000-00886000 r-xp 00000000 fd:00 1899872 /lib/libc-2.5.so 00886000-00888000 r-xp 00153000 fd:00 1899872 /lib/libc-2.5.so 00888000-00889000 rwxp 00155000 fd:00 1899872 /lib/libc-2.5.so 00889000-0088c000 rwxp 00889000 00:00 0 0088e000-00891000 r-xp 00000000 fd:00 1899873 /lib/libdl-2.5.so 00891000-00892000 r-xp 00002000 fd:00 1899873 /lib/libdl-2.5.so 00892000-00893000 rwxp 00003000 fd:00 1899873 /lib/libdl-2.5.so 00895000-008bc000 r-xp 00000000 fd:00 1899874 /lib/libm-2.5.so 008bc000-008bd000 r-xp 00026000 fd:00 1899874 /lib/libm-2.5.so 008bd000-008be000 rwxp 00027000 fd:00 1899874 /lib/libm-2.5.so 008c0000-008d5000 r-xp 00000000 fd:00 1897158 /lib/libpthread-2.5.so 008d5000-008d6000 r-xp 00015000 fd:00 1897158 /lib/libpthread-2.5.so 008d6000-008d7000 rwxp 00016000 fd:00 1897158 /lib/libpthread-2.5.so 008d7000-008d9000 rwxp 008d7000 00:00 0 008db000-008ed000 r-xp 00000000 fd:00 1899879 /lib/libz.so.1.2.3 008ed000-008ee000 rwxp 00011000 fd:00 1899879 /lib/libz.so.1.2.3 008f0000-0092b000 r-xp 00000000 fd:00 1899881 /lib/libsepol.so.1 0092b000-0092c000 rwxp 0003b000 fd:00 1899881 /lib/libsepol.so.1 0092c000-00936000 rwxp 0092c000 00:00 0 00938000-0094e000 r-xp 00000000 fd:00 1899882 /lib/libselinux.so.1 0094e000-00950000 rwxp 00015000 fd:00 1899882 /lib/libselinux.so.1 00952000-00959000 r-xp 00000000 fd:00 1899880 /lib/librt-2.5.so 00959000-0095a000 r-xp 00007000 fd:00 1899880 /lib/librt-2.5.so 0095a000-0095b000 rwxp 00008000 fd:00 1899880 /lib/librt-2.5.so 0095d000-00972000 r-xp 00000000 fd:00 1899876 /lib/libnsl-2.5.so 00972000-00973000 r-xp 00014000 fd:00 1899876 /lib/libnsl-2.5.so 00973000-00974000 rwxp 00015000 fd:00 1899876 /lib/libnsl-2.5.so 00974000-00976000 rwxp 00974000 00:00 0 00978000-00981000 r-xp 00000000 fd:00 1899888 /lib/libcrypt-2.5.so 00981000-00982000 r-xp 00008000 fd:00 1899888 /lib/libcrypt-2.5.so 00982000-00983000 rwxp 00009000 fd:00 1899888 /lib/libcrypt-2.5.so 00983000-009aa000 rwxp 00983000 00:00 0 00a8a000-00a8b000 r-xp 00a8a000 00:00 0 [vdso] 00aef000-00aff000 r-xp 00000000 fd:00 1899893 /lib/libresolv-2.5.so 00aff000-00b00000 r-xp 0000f000 fd:00 1899893 /lib/libresolv-2.5.so 00b00000-00b01000 rwxp 00010000 fd:00 1899893 /lib/libresolv-2.5.so 00b01000-00b03000 rwxp 00b01000 00:00 0 00b20000-00b40000 r-xp 00000000 fd:00 3063612 /usr/lib/libpq.so.4.1 00b40000-00b41000 rwxp 0001f000 fd:00 3063612 /usr/lib/libpq.so.4.1 00be6000-00be8000 r-xp 00000000 fd:00 1899892 /lib/libkeyutils-1.2.so 00be8000-00be9000 rwxp 00001000 fd:00 1899892 /lib/libkeyutils-1.2.so 00beb000-00bed000 r-xp 00000000 fd:00 1899894 /lib/libcom_err.so.2.1 00bed000-00bee000 rwxp 00001000 fd:00 1899894 /lib/libcom_err.so.2.1 00bf0000-00c1d000 r-xp 00000000 fd:00 3063607 /usr/lib/libgssapi_krb5.so.2.2 00c1d000-00c1e000 rwxp 0002d000 fd:00 3063607 /usr/lib/libgssapi_krb5.so.2.2 00c20000-00c46000 r-xp 00000000 fd:00 3063605 /usr/lib/libk5crypto.so.3.1 00c46000-00c47000 rwxp 00025000 fd:00 3063605 /usr/lib/libk5crypto.so.3.1 00c49000-00c51000 r-xp 00000000 fd:00 3063604 /usr/lib/libkrb5support.so.0.1 00c51000-00c52000 rwxp 00007000 fd:00 3063604 /usr/lib/libkrb5support.so.0.1 00c54000-00ce8000 r-xp 00000000 fd:00 3063606 /usr/lib/libkrb5.so.3.3 00ce8000-00ceb000 rwxp 00093000 fd:00 3063606 /usr/lib/libkrb5.so.3.3 00ced000-00cf8000 r-xp 00000000 fd:00 1899875 /lib/libgcc_s-4.1.2-20080825.so.1 00cf8000-00cf9000 rwxp 0000a000 fd:00 1899875 /lib/libgcc_s-4.1.2-20080825.so.1 00d3c000-00d80000 r-xp 00000000 fd:00 1899896 /lib/libssl.so.0.9.8e 00d80000-00d84000 rwxp 00043000 fd:00 1899896 /lib/libssl.so.0.9.8e 00e26000-00e47000 r-xp 00000000 fd:00 3209132 /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1.0.0 00e47000-00e48000 rwxp 00020000 fd:00 3209132 /usr/local/firstworks/lib/libsqlrconnection-0.43.so.1.0.0 08048000-0804f000 r-xp 00000000 fd:00 3209139 /usr/local/firstworks/bin/sqlr-connection-postgresql 0804f000-08050000 rw-p 00006000 fd:00 3209139 /usr/local/firstworks/bin/sqlr-connection-postgresql 0a02a000-0a0e5000 rw-p 0a02a000 00:00 0 [heap] b7e00000-b7e21000 rw-p b7e00000 00:00 0 b7e21000-b7f00000 ---p b7e21000 00:00 0 b7fc0000-b7fc8000 rw-p b7fc0000 00:00 0 b7fd0000-b7fd2000 rw-s 00000000 00:09 4227080 /SYSV0100f7c2 (deleted) b7fd2000-b7fd3000 rw-p b7fd2000 00:00 0 bf845000-bf85a000 rw-p bffe9000 00:00 0 [stack] (pid=14256) Abnormal termination: signal 6 received |
From: Renat S. <sr...@st...> - 2011-11-15 08:35:22
|
Hello David, This is a small patch that fixes the session counter (the one that is in "scaler's view" section). Listener increments that counter just before passing a client session to a connection in the dynamic scaling mode. If it fails it should decrement the counter. -- Renat Sabitov e-mail: sr...@st... Stack Soft jid: sr...@ja... |
From: David M. <dav...@fi...> - 2011-11-14 17:29:40
|
Wow, that was fast! Thanks, I'll check them out and let you know soon. Dave On 11/14/2011 09:08 AM, Renat Sabitov wrote: > Hello David, > > I've made patches for rudiments and sqlrelay to handle signals by > flag. Please check it and tell what your thoughts are. > > 11.11.2011 09:50, David Muse пишет: >> I applied the fix and it's in CVS now. >> >> You're right about signal handlers setting flags and the main app >> testing for them and calling the shutdown code itself. That would >> definitely eliminate race conditions, like a signal being received >> before isforkedlistener is set but then the shutdown code testing >> isforkedlistener. >> >> I have wondered about how to deal with problems like that before. I >> can't believe the flag solution never occurred to me. It seems so >> obvious now. Feel free to work on that :) >> >> Dave >> >> On 11/11/2011 12:09 AM, Renat Sabitov wrote: >>> Yes, it might be a better solution. >>> >>> Yet, calling destructors and manipulating semaphores and shared memory >>> in signal handler is not recommended at all. The best way to handle a >>> signal is to fire some flag in the handler and then check it in the >>> main >>> program flow. >>> >>> 11.11.2011 02:39, David Muse пишет: >>>> Ahhh, I see the problem... >>>> >>>> I think a cleaner solution might be to remove the setting of >>>> pidfile to >>>> NULL after the fork() and just wrap the removal of the pid and >>>> unixport >>>> files with an "if (!isforkedchild) {" in the destructor. Then the >>>> semset, idmemory and cmdl objects would still be freed. >>>> >>>> What do you think? >>>> >>>> Dave >> >> >> >> ------------------------------------------------------------------------------ >> >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Sqlrelay-discussion mailing list >> Sql...@li... >> https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > > > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com |
From: Renat S. <sr...@st...> - 2011-11-14 14:08:50
|
Hello David, I've made patches for rudiments and sqlrelay to handle signals by flag. Please check it and tell what your thoughts are. 11.11.2011 09:50, David Muse пишет: > I applied the fix and it's in CVS now. > > You're right about signal handlers setting flags and the main app > testing for them and calling the shutdown code itself. That would > definitely eliminate race conditions, like a signal being received > before isforkedlistener is set but then the shutdown code testing > isforkedlistener. > > I have wondered about how to deal with problems like that before. I > can't believe the flag solution never occurred to me. It seems so > obvious now. Feel free to work on that :) > > Dave > > On 11/11/2011 12:09 AM, Renat Sabitov wrote: >> Yes, it might be a better solution. >> >> Yet, calling destructors and manipulating semaphores and shared memory >> in signal handler is not recommended at all. The best way to handle a >> signal is to fire some flag in the handler and then check it in the main >> program flow. >> >> 11.11.2011 02:39, David Muse пишет: >>> Ahhh, I see the problem... >>> >>> I think a cleaner solution might be to remove the setting of pidfile to >>> NULL after the fork() and just wrap the removal of the pid and unixport >>> files with an "if (!isforkedchild) {" in the destructor. Then the >>> semset, idmemory and cmdl objects would still be freed. >>> >>> What do you think? >>> >>> Dave > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion -- Renat Sabitov e-mail: sr...@st... Stack Soft jid: sr...@ja... |
From: David M. <dav...@fi...> - 2011-11-11 05:46:05
|
I applied the fix and it's in CVS now. You're right about signal handlers setting flags and the main app testing for them and calling the shutdown code itself. That would definitely eliminate race conditions, like a signal being received before isforkedlistener is set but then the shutdown code testing isforkedlistener. I have wondered about how to deal with problems like that before. I can't believe the flag solution never occurred to me. It seems so obvious now. Feel free to work on that :) Dave On 11/11/2011 12:09 AM, Renat Sabitov wrote: > Yes, it might be a better solution. > > Yet, calling destructors and manipulating semaphores and shared memory > in signal handler is not recommended at all. The best way to handle a > signal is to fire some flag in the handler and then check it in the main > program flow. > > 11.11.2011 02:39, David Muse пишет: >> Ahhh, I see the problem... >> >> I think a cleaner solution might be to remove the setting of pidfile to >> NULL after the fork() and just wrap the removal of the pid and unixport >> files with an "if (!isforkedchild) {" in the destructor. Then the >> semset, idmemory and cmdl objects would still be freed. >> >> What do you think? >> >> Dave |
From: Renat S. <sr...@st...> - 2011-11-11 05:07:51
|
Yes, it might be a better solution. Yet, calling destructors and manipulating semaphores and shared memory in signal handler is not recommended at all. The best way to handle a signal is to fire some flag in the handler and then check it in the main program flow. 11.11.2011 02:39, David Muse пишет: > Ahhh, I see the problem... > > I think a cleaner solution might be to remove the setting of pidfile to > NULL after the fork() and just wrap the removal of the pid and unixport > files with an "if (!isforkedchild) {" in the destructor. Then the > semset, idmemory and cmdl objects would still be freed. > > What do you think? > > Dave -- Renat Sabitov e-mail: sr...@st... Stack Soft jid: sr...@ja... |
From: David M. <dav...@fi...> - 2011-11-10 22:35:39
|
Ahhh, I see the problem... I think a cleaner solution might be to remove the setting of pidfile to NULL after the fork() and just wrap the removal of the pid and unixport files with an "if (!isforkedchild) {" in the destructor. Then the semset, idmemory and cmdl objects would still be freed. What do you think? Dave On 11/10/2011 10:41 AM, Renat Sabitov wrote: > Hello David, > > We've discovered weird problem in sqlrelay. In some circumstances > forked listener removes unix socket file. It happens in alarm handler, > when forked listener recieves SIGALRM and calls staticlistener's > destructor. You've already put some protection for pidfile, shared > memory and semaphores, but not for "unixport". As a result listener > stops getting new connections by the local socket, though continues to > accept connection by tcp. > > Please look at the patch attached. > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > > > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com |
From: David M. <dav...@fi...> - 2011-11-10 22:28:06
|
Hi Renat, Sorry, I've only looked at them briefly. I've been caught up in a bunch work that makes mysql-to-oracle migration a lot easier and haven't done much else for the past few weeks. I'll take a look at it as soon as I get a chance though. Dave On 11/10/2011 05:50 AM, Renat Sabitov wrote: > Hello David, > > Have you seen my patches? What are you thoughts? > |