-
Notifications
You must be signed in to change notification settings - Fork 548
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
Block-builder: pull jobs from scheduler #10118
Merged
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
f457910
Merge from davidgrant/block-builder-scheduler-reconcile
seizethedave 8f9d996
Don't need to get fancy with critical section: no contention is possi…
seizethedave 6712985
Document s.committed.
seizethedave f97e4cb
Merge
seizethedave 4cfeed9
Fix merge slop.
seizethedave eaed668
Add proto defs.
seizethedave d37b1f2
Initial RPC protos.
seizethedave 35d1868
Log an error if flushing fails.
seizethedave 81dee72
Include RPC forms of assignJob/updateJob.
seizethedave 3772a12
Merge remote-tracking branch 'origin/main' into davidgrant/block-buil…
seizethedave 7c3f2da
Fleshing out the client module.
seizethedave db44d45
Appease the linter.
seizethedave 5cc39ce
workerID param not used.
seizethedave 3c6a566
CompleteJob: no context needed.
seizethedave 91b8e83
The linter.
seizethedave 7355de9
More logs.
seizethedave c34617d
Fix circular reference. Initialize client.
seizethedave 9f67caa
schedulerproto -> schedulerpb
seizethedave 47b5662
merge
seizethedave 188217f
Fix compile stuff.
seizethedave 179018e
Getting builder/scheduler up in docker-compose.
seizethedave f789447
Clean unneeded flags.
seizethedave bad7dc2
Fixes for BB<>scheduler communications:
seizethedave 762012f
Fix block-builder's scheduler_config so it can connect to a scheduler.
seizethedave 671f4b3
Shorter update interval for testing.
seizethedave f760fa8
Fix unloggable key.
seizethedave df7e43e
Longer job working time.
seizethedave 6ad943c
Merge remote-tracking branch 'origin/main' into davidgrant/block-buil…
seizethedave 63313b0
Undo blockbuilder.go hacking.
seizethedave 509e9a8
Peel off block-builder changes not ready for this PR.
seizethedave fcdd240
Fix log message when creating a new job.
seizethedave 77b00ac
Add some tests for scheduler client module. And fix some things found…
seizethedave 6ed93cc
Linter.
seizethedave 23e0db2
Lint: AGPL header.
seizethedave fa14a29
More info in the SchedulerClient comment.
seizethedave 54f1af4
Remove superfluous comment.
seizethedave 02d7856
Defer Kafka offset flushing to a later PR.
seizethedave b175c80
Revert "Undo blockbuilder.go hacking."
seizethedave b419dd7
Revert "Peel off block-builder changes not ready for this PR."
seizethedave cb250cd
Separate run functions for standalone, pull modes.
seizethedave 5e53ac8
Working on a separate codepath for 'pull mode'.
seizethedave 9944af4
don't need PartitionState.Clone.
seizethedave ecafbf5
Better startup initialization. Restore the assigned partition validat…
seizethedave 5af6624
Lint.
seizethedave f17ee08
More changes to blockbuilder to support testing. Fix terminating loop…
seizethedave f980d09
Working on a pull-mode consumption test.
seizethedave 815559f
merge
seizethedave 9d238a2
Fix build.
seizethedave 727f684
lint
seizethedave 3b766a0
Add CycleEndTs, CycleEndOffset fields to JobSpec.
seizethedave d42f7bb
Use new JobSpec fields in consumeJob
seizethedave 4281f8c
Fix pull-mode test.
seizethedave 23024bc
Make proto fields consistent.
seizethedave f9fa09d
Re-fix test.
seizethedave 47f30b9
Merge remote-tracking branch 'origin/main' into davidgrant/block-buil…
seizethedave 3c873ef
Remove erroneous provenance headers.
seizethedave 32aaa02
Pull-mode-ize another block-builder test.
seizethedave 6e8c976
TestBlockBuilder_StartWithExistingCommit_PullMode
seizethedave cdadc8c
Add a jobIteration counter for tests.
seizethedave c85ce3a
More pull-mode tests.
seizethedave 1f04656
Expose partition as a param to produceSamples
seizethedave 904efbc
Merge remote-tracking branch 'origin/main' into davidgrant/block-buil…
seizethedave 96b34c9
Add a second job to the general PullMode test.
seizethedave a2eab72
Merge remote-tracking branch 'origin/main' into davidgrant/block-buil…
seizethedave bf1f77d
Add job key details to log fields.
seizethedave 3738b7f
Also make sure workerID isn't empty.
seizethedave a1e2945
remove 'failed' language from wrapped error string.
seizethedave 6206183
Temporarily fix weird test flake.
seizethedave 0062ff8
Cleanup of var names/comments.
seizethedave 4e8dd7a
Validate completion keys.
seizethedave 929ab6c
Merge remote-tracking branch 'origin/main' into davidgrant/block-buil…
seizethedave eed567b
Flush and close gRPC conn on shutdown.
seizethedave fd9f31d
mv blockBuilderPullModeConfig to blockbuilder_test.go.
seizethedave 0f4a620
Do some assertions of scheduler call counts.
seizethedave ded6790
Less parallel tests.
seizethedave 78f4bbb
Replace Flush scheme with a Close method that runs after the run-loop…
seizethedave eeeb3ac
Replace counts() with single-use count getters.
seizethedave baf97cf
Verify Close() called on shutdown.
seizethedave 53a889c
Fix order of args to Equal().
seizethedave File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to tell back to scheduler that the job failed. But I guess scheduler will know when a job as not received an update for some (short) time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think I recall discussing this in a design document. Scheduler will know when it has failed as it won't receive an update within X seconds. We can always enhance this by adding failure info to the UpdateJob RPC. Initially I'm just keeping it barebones.