-
Notifications
You must be signed in to change notification settings - Fork 181
TypeError: Object [object Object] has no method 'release' #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Which version of |
Running on [email protected] Here's a strange output:
And nope, pool.js does not have the mentioned method. |
The package.json of |
Please ignore the strange "invalid" output. I was doing it from a different project. The one having the |
@elhoyos could you please create a sample project that we can use to reproduce the problem locally on our machine? See wiki instructions. |
Hi, I think this may be a major issue with the latest loopback-connector-postgres?
For me: running >8 concurrent transactions via As requested, @bajtos: I've created a sample project here with steps to reproduce locally.
|
I can confirm, Loopback is not suitable for production use with Postgres ... |
See #143 |
Glad to hear that! I'll test it as from tomorrow. Thanks a lot for the quick solution! |
Great news! |
When running more than 9 transactions at the same time, we get an error: "pool.release is not a function". at line 74 inlib/transaction.js. I found out that this.pg is returning an EvenEmitter, containing a pool which contains the function release. Finally, when I call pool.pool.release instead of pool.release, everything works fine and the connection are released on my pg database. This modification fixes the issue loopbackio#109.
Hello, It seems that the upgrade of pg was not fixing this issue. Still have the |
Fix loopbackio#109 bug transaction concurrency.
Revert "Fix loopbackio#109 bug transaction concurrency."
* Add test for bulk transactions (Zak Barbuto) * Use pg callback over connection.release (#109) (Zak Barbuto) * Use pool.pool.release over pool.release (#109) (Zak Barbuto) * Add test env information to README (Zak Barbuto) * update README for local postgres setup (Diana Lau) * Update postgresql.js (tmclouisluk) * Fix bug when using postgresql 8.x (tmclouisluk) * Use unique param for affectedRows (Loay) * Move info from docs into README (#199) (Rand McKinney) * Update paid support URL (Siddhi Pai) * Revert loopback 2.x (siddhipai) * Revert dev-dependency on loopback to 2.x (Siddhi Pai) * Set publish tag to "lts" (Siddhi Pai) * Update README with correct doc links, etc (Amir Jafarian)
* Remove console.log (Raymond Feng) * Monkey patch generic-pool to work through errors (Russ Tyndall) * Fix the escape char (Raymond Feng) * Upgrade to [email protected] (Loay) * Add checkFieldAndIndex for table status (#228) (Sakib Hasan) * Refactor migration methods (ssh24) * Fix code style inconsistencies in ilike tests (Alireza Ahmadi) * Improve tests for better code style consistency (Alireza Ahmadi) * Add tests for pattern matching operators (Alireza Ahmadi) * Add ILIKE functionality (Alireza Ahmadi) * Refactor discovery models (Loay Gewily) * merge in #216 (gregdingle) * Fix unit tests (ssh24) * Fix linting errors and unnesssary changes. (Diana Lau) * remove done() calls in test (gregdingle) * Added test. Ran run-tests. (gregdingle) * Fix bug where settings for pg-pool were dropped (Greg Dingle) * Update README with correct doc links, etc (Amir Jafarian) * Add test for bulk transactions (Zak Barbuto) * Use pg callback over connection.release (#109) (Zak Barbuto) * Use pool.pool.release over pool.release (#109) (Zak Barbuto) * Add test env information to README (Zak Barbuto) * update README for local postgres setup (Diana Lau) * Update postgresql.js (tmclouisluk) * Fix bug when using postgresql 8.x (tmclouisluk) * Replicate new issue_template from loopback (Siddhi Pai) * Replicate issue_template from loopback repo (Siddhi Pai) * Update LB connector version (Loay) * Use unique param for affectedRows (Loay) * Move info from docs into README (#199) (Rand McKinney) * Update paid support URL (Siddhi Pai) * Start 3.x + drop support for Node v0.10/v0.12 (siddhipai) * Drop support for Node v0.10 and v0.12 (Siddhi Pai) * Start the development of the next major version (Siddhi Pai)
I'm having this error when issuing a
SELECT
and then doing a#rollback
to close the transaction without actually doing other operation.Please notice this is only happening in production having the same modules version as in development:
The text was updated successfully, but these errors were encountered: