Skip to content

Conversation

@jasontedor
Copy link
Member

This commit splits cluster state update tasks into roles. Those roles
are:

  • task info
  • task configuration
  • task executor
  • task listener

All tasks that have the same executor will be executed in batches. This
removes the need for local batching as was previously in
MetaDataMappingService.

Additionally, this commit reintroduces batching on mapping update calls.

Relates #13627

Copy link
Contributor

Choose a reason for hiding this comment

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

can we add note about the executor semantics?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added docs in cab59785023f6ba31a955421bd5f3a66f7799a96.

Copy link
Contributor

Choose a reason for hiding this comment

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

since it seem we are going all gang-ho on java8 , rename the runnable to lambdas? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in a7a07c77c50220dd69b60bc232cd799f33490fe3. :)

@ywelsch
Copy link
Contributor

ywelsch commented Nov 25, 2015

Oops, I got confused with the Github interface (commenting on commit instead of PR). I like the change of associating failures with their originating task using a map instead of position 👍.

@jasontedor
Copy link
Member Author

@ywelsch I liked your suggestion a lot so I pushed 66af98ea5b0a925e9c3dc55465c8aceb91813b6f.

Copy link
Contributor

Choose a reason for hiding this comment

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

left over?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in ff01dc904a13870bec4d11e7c9260940cbc6e6c4.

Copy link
Contributor

Choose a reason for hiding this comment

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

randomize?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 7172e972e4d821048c4278117a8425f357fccc4c.

Copy link
Member Author

Choose a reason for hiding this comment

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

This was lost on squash but has been integrated into master now in bbef8ac.

@bleskes
Copy link
Contributor

bleskes commented Nov 30, 2015

Good job. LGTM. Left some minor comments. no need for another review.

bleskes and others added 9 commits November 30, 2015 08:59
This commit splits cluster state update tasks into roles. Those roles
are:
 - task info
 - task configuration
 - task executor
 - task listener

All tasks that have the same executor will be executed in batches. This
removes the need for local batching as was previously in
MetaDataMappingService.

Additionally, this commit reintroduces batching on mapping update calls.

Relates #13627
@jasontedor jasontedor removed the review label Nov 30, 2015
jasontedor added a commit that referenced this pull request Nov 30, 2015
Split cluster state update tasks into roles
@jasontedor jasontedor merged commit c4a2298 into elastic:master Nov 30, 2015
@jasontedor jasontedor deleted the cluster-state-batch branch November 30, 2015 14:19
jasontedor added a commit that referenced this pull request Dec 4, 2015
This commit addresses some issues that arose during the review of #14899
but were lost during squash while integrating into master.
 - the number of test threads is dropped to at most eight
 - a local variable is renamed for clarity
 - task priorities are randomized
ywelsch added a commit that referenced this pull request Jan 10, 2017
@clintongormley clintongormley added :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. and removed :Cluster labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >enhancement v5.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants