dosubot[bot] commented on issue #3057: URL: https://github.com/apache/hugegraph/issues/3057#issuecomment-4656832523
<!-- Answer --> This issue is likely caused by the task result (~1GB JSON) exceeding the default **`task.result_size_limit`** (16MB by default), which corrupted/stuck the task in the TaskStore. Tasks in HugeGraph are stored as graph vertices internally (`~task` and `~taskresult` labels), and when the result is too large, it can fail during save and leave things in a broken state [[1]](https://github.com/apache/hugegraph/pull/827). **To recover**, try force-deleting the problematic task via REST API: ```bash DELETE http://${IP}:${PORT}/graphs/${GRAPH_NAME}/tasks/${TASK_ID}?force=true ``` Example: ```bash curl -X DELETE "http://${IP}:${PORT}/graphs/${GRAPH_NAME}/tasks/${TASK_ID}?force=true" ``` If even this API call hangs/fails due to the InterruptedException, you may need to restart the HugeGraph server first, then immediately issue the delete before the stuck task causes issues again. **To prevent this in the future**, increase the task result size limit in your graph configuration file (e.g., `conf/graphs/hugegraph.properties`) [[2]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/config/CoreOptions.java#L285-L298): ```properties task.result_size_limit=1073741824 ``` However, storing 1GB results as task output is not ideal. Consider paginating your Gremlin queries (using `.range()` or `.limit()`) instead of retrieving all results at once. **If the REST API is completely unresponsive**, since tasks are stored as vertices in RocksDB, a last-resort option would be to directly clean up the backend data, though this is risky. A server restart should restore normal operation for other tasks once the stuck task is cleared. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fhugegraph).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fhugegraph). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fhugegraph&message_id=cc62c947-f3eb-4999-b51e-8080b490dc6c) [](https://github.dosu.com/apache/hugegraph?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fhugegraph) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fhugegraph) -- 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]
