Testing on replica2 branch. Same behavior is on the master branch as well.
After restarting checksum checker for about 50 times, below error comes up but checksum checker still runs and completes run.
Exception in thread "main" java.io.IOException: Could not find a port to use for the web server - tried ports 9362 to 9412 at au.gov.naa.digipres.rollingchecker.CheckerServer.initServer(CheckerServer.java:121) at au.gov.naa.digipres.rollingchecker.CheckerServer.<init>(CheckerServer.java:90)at au.gov.naa.digipres.rollingchecker.CheckerServer.main(CheckerServer.java:382)</init>
ON continuing to restart the checksum checker for another 50 times, checksum checker stops with below error,
Exception in thread "main" org.postgresql.util.PSQLException: FATAL: sorry, too many clients already at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:291) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:106) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:123)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:28)
at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:20)
at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:22)
at org.postgresql.Driver.makeConnection(Driver.java:391)
at org.postgresql.Driver.connect(Driver.java:265)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at au.gov.naa.digipres.rollingchecker.CheckerThread.initDatabase(CheckerThread.java:149) at au.gov.naa.digipres.rollingchecker.CheckerThread.<init>(CheckerThread.java:133)
at au.gov.naa.digipres.rollingchecker.CheckerServer.startChecker(CheckerServer.java:169) at au.gov.naa.digipres.rollingchecker.CheckerServer.<init>(CheckerServer.java:89) at au.gov.naa.digipres.rollingchecker.CheckerServer.main(CheckerServer.java:382)</init></init></init></init></init></init></init>