sanpwc commented on a change in pull request #399:
URL: https://github.com/apache/ignite-3/pull/399#discussion_r732731541
##########
File path:
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
##########
@@ -482,22 +532,50 @@ private void dropTableLocally(String name, IgniteUuid
tblId, List<List<ClusterNo
/** {@inheritDoc} */
@Override public Table createTable(String name, Consumer<TableChange>
tableInitChange) {
- return createTableAsync(name, tableInitChange).join();
+ if (!busyLock.enterBusy())
+ throw new IgniteException("Operation has been cancelled (node is
stopping).");
Review comment:
Seems that in some cases we through
IgniteExcpetion(NodeStoppingException) and in some `IgniteException("Operation
has been cancelled (node is stopping).")` Should we use consistent approach
here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]