Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6336 causes overlord console page loading to be extreme slow #6726

Open
QiuMM opened this issue Dec 12, 2018 · 5 comments
Open

#6336 causes overlord console page loading to be extreme slow #6726

QiuMM opened this issue Dec 12, 2018 · 5 comments

Comments

@QiuMM
Copy link
Member

QiuMM commented Dec 12, 2018

As discussed in #6336 (comment), I think we should revert #6336 first and find a better way to complete #6336. How do you think @FaxianZhao @jihoonson.

@vogievetsky
Copy link
Contributor

Is this still an issue in the latest code?

@QiuMM
Copy link
Member Author

QiuMM commented May 9, 2019

Yes, it is. I have made some improvement in my druid code, I'll open a PR to patch this when I'm not busy.

@FaxianZhao
Copy link
Contributor

FaxianZhao commented May 10, 2019

I suggest use the Fine-Grained Lock resolve this kind issues.
I think my previous draft code won't cause this, because I use synchronized (lockResult.getTaskLock()) instead of toolbox.getTaskLockbox().doInCriticalSection, but it looks bad for committed code.

I think we could push down lock action to the TaskLock level. Giant lock is used to approve TaskLock, and TaskLock is work for the real business. We could implement TaskLockType with ReadWriteLock, but I haven't go through the whole picture.

@jihoonson
Copy link
Contributor

@QiuMM thanks. I'm looking forward to your PR.

@FaxianZhao yeah, fine-grained locking would mitigate this issue. But, synchronizing taskLock isn't enough to fix the issue of #6336, because taskLock is shared by the tasks of the same groupId but the tasks of different groupIds should be able to request segment allocation for the same dataSource and interval at the same time. Check out #7491.

I think the best way to handle this is synchronizing segmentId allocation per dataSource per interval as @QiuMM did here.

@github-actions
Copy link

This issue has been marked as stale due to 280 days of inactivity.
It will be closed in 4 weeks if no further activity occurs. If this issue is still
relevant, please simply write any comment. Even if closed, you can still revive the
issue at any time or discuss it on the [email protected] list.
Thank you for your contributions.

@github-actions github-actions bot added the stale label Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants