Fix Postgresql JDBC driver leaking memory

Older versions of Postgresql JDBC driver rely on finalize() methods in
order to avoid leaking unclosed database objects. Given finalize
methods are unpredictable (no guarantee about prompt execution, if at
all), in some high load environments this could lead to a memory leak
with millions of JDBC objects pending finalization.

Newer versions of the Postgresql JDBC driver removed the use of finalize
methods to avoid this kind of issues.

Also provides an implementation of setQueryTimeout.

Bug: Issue 4848
Change-Id: Ia143f1df1d8e41686362fd76b9bc82e0046f9894
1 file changed
tree: 977177d11eeaf282a109cd82d78e19ac5319807e
  1. .buckconfig
  2. .buckversion
  3. .editorconfig
  4. .gitignore
  5. .gitmodules
  6. .mailmap
  7. .pydevproject
  8. .settings/
  9. .watchmanconfig
  10. BUCK
  11. COPYING
  12. Documentation/
  13. INSTALL
  14. README.md
  15. ReleaseNotes/
  16. SUBMITTING_PATCHES
  17. VERSION
  18. bucklets/
  19. contrib/
  20. gerrit-acceptance-framework/
  21. gerrit-acceptance-tests/
  22. gerrit-antlr/
  23. gerrit-cache-h2/
  24. gerrit-common/
  25. gerrit-extension-api/
  26. gerrit-gpg/
  27. gerrit-gwtdebug/
  28. gerrit-gwtexpui/
  29. gerrit-gwtui-common/
  30. gerrit-gwtui/
  31. gerrit-httpd/
  32. gerrit-launcher/
  33. gerrit-lucene/
  34. gerrit-main/
  35. gerrit-oauth/
  36. gerrit-openid/
  37. gerrit-patch-commonsnet/
  38. gerrit-patch-jgit/
  39. gerrit-pgm/
  40. gerrit-plugin-api/
  41. gerrit-plugin-archetype/
  42. gerrit-plugin-gwt-archetype/
  43. gerrit-plugin-gwtui/
  44. gerrit-plugin-js-archetype/
  45. gerrit-prettify/
  46. gerrit-reviewdb/
  47. gerrit-server/
  48. gerrit-sshd/
  49. gerrit-util-cli/
  50. gerrit-util-http/
  51. gerrit-util-ssl/
  52. gerrit-war/
  53. lib/
  54. plugins/
  55. tools/
  56. website/
README.md

Gerrit Code Review

Gerrit is a code review and project management tool for Git based projects.

Objective

Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.

Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.

Documentation

For information about how to install and use Gerrit, refer to the documentation.

Source

Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.

Reporting bugs

Please report bugs on the issue tracker.

Contribute

Gerrit is the work of hundreds of contributors. We appreciate your help!

Please read the contribution guidelines.

Note that we do not accept Pull Requests via the Github mirror.

Getting in contact

The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.

The Developer Mailing list is repo-discuss on Google Groups.

License

Gerrit is provided under the Apache License 2.0.

Build

Install Buck and run the following:

    git clone --recursive https://gerrit.googlesource.com/gerrit
    cd gerrit && buck build release

Install binary packages (Deb/Rpm)

The instruction how to configure GerritForge/BinTray repositories is here

On Debian/Ubuntu run:

    apt-get update & apt-get install gerrit=<version>-<release>

NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.

On CentOS/RedHat run:

    yum clean all && yum install gerrit-<version>[-<release>]

NOTE: release is optional. Last released package of the version is installed if the release number is omitted.

Events

  • November 7-8 2015: Gerrit User Conference, Mountain View. (Register).
  • November 9-13 2015: Gerrit Hackathon, Mountain View. (Invitation Only).
  • March 2016: Gerrit Hackathon, Berlin. (Details to be confirmed).