sanpwc commented on code in PR #6604:
URL: https://github.com/apache/ignite-3/pull/6604#discussion_r2387327695


##########
modules/placement-driver-api/src/main/java/org/apache/ignite/internal/placementdriver/EmptyAssignmentsException.java:
##########
@@ -15,14 +15,26 @@
  * limitations under the License.
  */
 
-package org.apache.ignite.internal.cli.commands.sql.planner;
+package org.apache.ignite.internal.placementdriver;
+
+import static org.apache.ignite.internal.lang.IgniteStringFormatter.format;
+import static 
org.apache.ignite.lang.ErrorGroups.PlacementDriver.EMPTY_ASSIGNMENTS_ERR;
+
+import org.apache.ignite.internal.replicator.ReplicationGroupId;
+import org.apache.ignite.lang.IgniteException;
 
 /**
- * Tests for {@link SqlPlannerReplCommand}.
+ * Exception thrown when there are no assignments available.
  */
-public class ItSqlPlannerReplCommandTest extends ItSqlPlannerCommandTest {
-    @Override
-    protected Class<?> getCommandClass() {
-        return SqlPlannerReplCommand.class;
+public class EmptyAssignmentsException extends IgniteException {
+    private static final long serialVersionUID = 1698246028174494488L;
+
+    /**
+     * Constructor.
+     *
+     * @param groupId Replication group id.
+     */
+    public EmptyAssignmentsException(ReplicationGroupId groupId) {
+        super(EMPTY_ASSIGNMENTS_ERR, format("Empty assignments for group 
[groupId={}].", groupId));

Review Comment:
   Same as for EmptyDataNodesException 



-- 
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]

Reply via email to