After gsm restarted, exception [java.sql.SQLException: statement is closed] thrown for gsc

Description

Scenario:

  1. run ./gs-agent.sh --manager-local --gsc=1

  2. run gs-ui or gs-webui

  3. restart gsm from gs-ui or gs-webui

  4. see following exception in gsc log:

 

 

[gsc][2/1341] 2020-08-27 15:38:32,940 GSC SEVERE [com.gigaspaces.metrics.hsqldb.HsqlDbReporter] - Failed to insert row to table using statement org.hsqldb.jdbc.JDBCPreparedStatement@4f13c3e[closed] due to ; Caused by: java.sql.SQLException: statement is closed
[gsc][2/1341] at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
[gsc][2/1341] at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
[gsc][2/1341] at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
[gsc][2/1341] at org.hsqldb.jdbc.JDBCStatementBase.checkClosed(Unknown Source)
[gsc][2/1341] at org.hsqldb.jdbc.JDBCPreparedStatement.executeBatch(Unknown Source)
[gsc][2/1341] at com.gigaspaces.metrics.hsqldb.HsqlDbReporter.flush(HsqlDbReporter.java:154)
[gsc][2/1341] at com.gigaspaces.metrics.MetricReporter.report(MetricReporter.java:42)
[gsc][2/1341] at com.gigaspaces.metrics.hsqldb.HsqlDbReporter.report(HsqlDbReporter.java:76)
[gsc][2/1341] at com.gigaspaces.metrics.MetricSampler$Sampler.run(MetricSampler.java:202)
[gsc][2/1341] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[gsc][2/1341] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[gsc][2/1341] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[gsc][2/1341] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[gsc][2/1341] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[gsc][2/1341] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[gsc][2/1341] at java.lang.Thread.run(Thread.java:748)
[gsc][2/1341] Caused by: org.hsqldb.HsqlException: statement is closed
[gsc][2/1341] at org.hsqldb.error.Error.error(Unknown Source)
[gsc][2/1341] at org.hsqldb.error.Error.error(Unknown Source)
[gsc][2/1341] ... 14 more

Workaround

None

Acceptance Test

added automatic test

Assignee

Evgeny Fisher

Reporter

Evgeny Fisher

Labels

Priority

Major

SalesForce Case ID

None

Fix versions

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Premium

Platform

All
Configure