Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-23946 Improve clarity of 'Cache is already indexed' exception message #11760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static String message(int code, String objName) {
return "Index already exists: " + objName;

case CODE_CACHE_ALREADY_INDEXED:
return "Cache is already indexed: " + objName;
return "Cache is already indexed (already supports SQL): " + objName;

case CODE_VIEW_NOT_FOUND:
return "View doesn't exist: " + objName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public void testConcurrentEnableIndexing() throws Exception {
SchemaOperationException opEx = e.getCause(SchemaOperationException.class);

assertEquals(SchemaOperationException.CODE_CACHE_ALREADY_INDEXED, opEx.code());
assertEquals("Cache is already indexed: " + POI_CACHE_NAME, opEx.getMessage());
assertEquals("Cache is already indexed (already supports SQL): " + POI_CACHE_NAME, opEx.getMessage());
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public void testCreateTableOnExistingCache() {
execute(client(), String.format(createTemplate, "NameTest1", cacheName));

return null;
}, IgniteSQLException.class, "Cache is already indexed: " + cacheName);
}, IgniteSQLException.class, "Cache is already indexed (already supports SQL): " + cacheName);
}
finally {
client().destroyCache("new");
Expand Down