jaykay12 commented on code in PR #4452:
URL: https://github.com/apache/solr/pull/4452#discussion_r3321865739
##########
solr/core/src/java/org/apache/solr/handler/component/ActiveTasksListHandler.java:
##########
@@ -23,37 +23,42 @@
import org.apache.solr.api.Api;
import org.apache.solr.api.JerseyResource;
import org.apache.solr.client.api.model.ActiveTaskDetails;
+import org.apache.solr.client.api.model.TaskStatusResponse;
import org.apache.solr.common.util.NamedList;
+import org.apache.solr.handler.admin.api.GetTaskStatus;
import org.apache.solr.handler.admin.api.ListActiveTasks;
-import org.apache.solr.handler.api.V2ApiUtils;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.request.SolrRequestHandler;
import org.apache.solr.response.SolrQueryResponse;
import org.apache.solr.security.AuthorizationContext;
import org.apache.solr.security.PermissionNameProvider;
/**
- * Handles request for listing all active cancellable tasks All active tasks
logic lives in the v2
- * {@link ListActiveTasks}; this handler is a thin v1 bridge that extracts
request parameters and
- * delegates.
+ * Handles request for listing the active cancellable tasks and Status check
of any particular task,
+ * actual logic lives in the v2: {@link ListActiveTasks} and {@link
GetTaskStatus}; this handler is
+ * a thin v1 bridge that extracts request parameters and delegates over to v2.
*/
public class ActiveTasksListHandler extends TaskManagementHandler {
// This can be a parent level member but we keep it here to allow future
handlers to have
// a custom list of components
@Override
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)
throws Exception {
- String taskStatusCheckUUID = req.getParams().get(TASK_CHECK_UUID, null);
+ String taskStatusCheckID = req.getParams().get(TASK_CHECK_UUID, null);
Review Comment:
have reverted this back to `taskStatusCheckUUID`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]