Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected Replica.Type computeReplicaType() {
return Replica.Type.NRT;
}

boolean isLeader() {
public boolean isLeader() {
return isLeader;
}

Expand Down Expand Up @@ -995,9 +995,12 @@ private void doLocalDeleteByQuery(
}
}

// internal helper method to setup request by processors who use this class.
// NOTE: not called by this class!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

false; it is being called in several places.

void setupRequest(UpdateCommand cmd) {
/**
* Set up / initialize. Exposed for other processors to determine {@link #isLeader()} afterward.
*
* @lucene.internal
*/
public void setupRequest(UpdateCommand cmd) {
isLeader = getNonZkLeaderAssumption(req);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ private String getLeaderUrlZk(String id) {
}

@Override
void setupRequest(UpdateCommand cmd) {
public void setupRequest(UpdateCommand cmd) {
zkCheck(cmd);
if (cmd instanceof AddUpdateCommand acmd) {
nodes = setupRequest(acmd.getIndexedIdStr(), acmd.getSolrInputDocument(), null, cmd);
Expand Down
Loading