[
https://issues.apache.org/jira/browse/IGNITE-12808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130822#comment-17130822
]
Ivan Daschinskiy commented on IGNITE-12808:
-------------------------------------------
[~amashenkov] And what about this variant. I suppose it is EXACTLY what you
mean.
{code:java}
@Test
public void testReconnectClient() throws Exception {
IgniteEx srv1 = startGrids(2);
IgniteEx cli = startClientGrid(2);
cli.cluster().state(ClusterState.ACTIVE);
IgniteCache<?, ?> cache =
srv1.createCache(testCacheConfiguration(POI_CACHE_NAME));
fillTestData(srv1);
stopGrid(1);
createTable(cache, POI_SCHEMA_NAME);
performQueryingIntegrityCheck(srv1);
IgniteClientReconnectAbstractTest.reconnectClientNode(log, cli, srv1,
() -> {
try {
stopGrid(0);
startGrid(1);
}
catch (Exception e) {
throw new IgniteException("Failed to restart cluster", e);
}
});
assertEquals(2, cli.cluster().nodes().size());
cli.cluster().state(ClusterState.ACTIVE);
assertEquals(NUM_ENTRIES,
cli.getOrCreateCache(POI_CACHE_NAME).size(CachePeekMode.PRIMARY));
}
{code}
> Allow create tables for existing caches
> ---------------------------------------
>
> Key: IGNITE-12808
> URL: https://issues.apache.org/jira/browse/IGNITE-12808
> Project: Ignite
> Issue Type: New Feature
> Components: sql
> Reporter: Mikhail Cherkasov
> Assignee: Ivan Daschinskiy
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> If you have a big cache with a lot of data and you need to index it, right
> now you have to destroy cache and create a new one to index your data. Or
> create a new cache with a table and reload it to data to the new cache which
> definitely is time-consuming and super inconvenient.
> I believe we can allow users to create tables for existing caches.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)