We are using Apache Ignite 2.9.0. Its a 5 node cluster with Zookeeper discovery.
We create table in Ignite by executing DDL statements from Intellij. Then we are able to see all data by running select queries from Intellij itself.
Today after wiping Ignite data and recreating tables, some of the tables return 0 records when select queries are run on them. But other applications which use cache API are able to fetch data without any issue.
I checked using Ignite Visor and all tables are there, including ones on which SQL queries fail. When I use sqlline tool also I see those tables. But there also SQL queries return 0 data.
Below is the table which is visible but does not return any data via SQL API.
create TABLE IF NOT EXISTS PRODSCHEMA.TRADESTATS
(
TRADERECORDCREATIONDATE varchar(100),
PRODUCTTYPE varchar(100),
PRODUCTSUBTYPE varchar(100),
TRADETYPE varchar(100),
TOTALIMPACTEDTRADES BIGINT,
TOTALTRADEOPENEXCEPTION BIGINT,
TOTALTRADECOUNT BIGINT,
UPDATEDAT TIMESTAMP,
PRIMARY KEY (TRADERECORDCREATIONDATE,PRODUCTTYPE,PRODUCTSUBTYPE,TRADETYPE)
) with "template=outputDataCacheTemplate,
CACHE_NAME=TradeStatsCache,
AFFINITY_KEY=TRADERECORDCREATIONDATE,
CACHE_GROUP=TRADE_METADATA_AGGREGATES,
KEY_TYPE=com.abc.entities.trade.TradeStatsEntityKey,
VALUE_TYPE=com.abc.entities.trade.TradeStatsEntity";
Template outputDataCacheTemplate exists and other tables also are using that template.
Please help.