dosubot[bot] commented on issue #2841:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2841#issuecomment-3126485531

   <!-- Answer -->
   This ClassCastException happens because HugeGraph 1.5.0 introduced a new 
distributed coordination mechanism (PD/Placement Driver) for HStore and similar 
backends, deprecating the old master/worker logic. In your setup, the 
TaskManager tries to cast a DistributedTaskScheduler to a StandardTaskScheduler 
during a master role change, but this cast is invalid if the scheduler is 
actually distributed. This is a code bug: the code assumes all schedulers are 
StandardTaskScheduler without checking their type, which fails in 
distributed/PD scenarios. 
   
   For HStore+PD, all cluster scheduling should be handled by PD, and the 
master/worker mechanism is no longer used. If your configuration or deployment 
still triggers the old master/worker logic, it can cause this error. Make sure 
your configuration matches the expected deployment mode for HugeGraph 1.5.0 
with PD, and avoid deprecated settings like explicit master/worker roles in 
rest-server.properties. More details and context are discussed in [issue 
#2833](https://github.com/apache/incubator-hugegraph/issues/2833).
   
   No documentation or recent fixes address this specific bug, so the best 
workaround is to ensure your deployment and configuration fully align with the 
PD-based distributed mode and do not mix in legacy master/worker settings.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/ae7e7c8a-8635-4208-a53f-2f6f0beea623?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/e5e246fa-a522-4d8a-ab3c-e2588b5b501b/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph/issues/2841)


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

Reply via email to