I am using SAP Hana as my datastore. I caught an exception in my Java code, as follows:
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [132]: transaction rolled back due to unavailable resource: search table error: "TN_LIVE"."XXX": line 254 col 1 (at pos 9718): [132] (range 3): transaction rolled back due to unavailable resource: "TN_LIVE"."YYY": line 300 col 1 (at pos 10317): [132] (range 3): transaction rolled back due to unavailable resource: maximum number of row store containers (1835008) exceeded
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:345)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:185)
at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:100)
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1130)
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:877)
at com.sap.db.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:492)
at com.sap.db.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:341)
at com.sap.db.jdbc.CallableStatementSapDB.executeUpdate(CallableStatementSapDB.java:884)
at com.sap.db.jdbc.trace.CallableStatement.executeUpdate(CallableStatement.java:1163)
What might have caused it?
Edit
I suspect it could be due to temp table that we used in our Stored Procs which are row store types - all our tables are column store types. This is our server specs:
- Our hana box on AWS is 122GB
- During the time the issue occurred free Hana RAM was approx 42GB
- How can I edit the row store containers settings to overcome the 1835008 exceeded warning? Or some steps on how to mitigate this issues?
- The issues got fixed automatically after restarting Hana server and approx 97GB RAM got freed
- Is upgrading Hana box the only solution or certain tweaks are available?
This article seem to have some information on on the "Maximum number of row store containers * exceeded" - https://apps.support.sap.com/sap/support/knowledge/preview/en/2229994. Can anyone share what's mentioned over there?