IGNITE-6173 the problem is appeared. We need to fix it by properly handling client cache stop. Main idea is that SQL schema metadata (tables, indexes, etc.) should not be removed on client cache.close().
But the implementation should be carefully designed as many factors should be taken into account, e.g. cache destroy, persistence, client reconnect and etc.