As part of our junits we do not use db connection but “manually” populating the cache using “put” method - cache.put(someIntegerId, entity). Everything is working as expected except SqlFieldsQuery which return no records (even for 'select * from table'), while using api getAll(ids) shows the expected entities. I assume, the fact that in the junits populate the cache using "put" method somehow doesn't populate the entry in the table behind (table exists but no records)... Is there a way to bypass this and make SqlFieldsQuery return results (dummy table creation/”sync” cache data/other)? how to make the entries we put in cache to be populated into the ignite cache table? cache.get(id) / cache.getAll(ids) return the expected results (I assume because its working on the cache maps and not the table)
when working normally (not junit) we have a connection to the DB and everything is working properly including same code dealing with SqlFieldsQuery (cache configuration we use setQueryEntities(qryEntities) ) using embedded Ignite, writethrough is off and readthrough is on
THX!!