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

Basic monitor solution #1

Open
wants to merge 27 commits into
base: reviewed-monitor
Choose a base branch
from
Open

Basic monitor solution #1

wants to merge 27 commits into from

Conversation

ekexium
Copy link
Member

@ekexium ekexium commented Apr 7, 2020

Implemented basic functionalities.
Fixed major issues.

@ekexium ekexium requested a review from denselm April 7, 2020 09:38
@ekexium ekexium requested a review from HoustonPutman April 8, 2020 01:11
Copy link

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments to start with

*/
synchronized private void registerQueryToZk(SolrZkClient client, String queryId, Query query, String paramString) throws KeeperException, InterruptedException, JoseException {
String path = MonitorUpdateProcessorFactory.zkQueryPath;
if (!client.exists(path, true)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this on initializaton of the handler/update request processor factory will probably suffice and lower the number of zk calls you need to make.

Copy link
Member Author

@ekexium ekexium Apr 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving these code to handler.init() caused some exceptions and it failed to create cores. So I added a flag variable here to avoid unnecessary zk calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants