-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Feature/scheduler #1372
Feature/scheduler #1372
Conversation
102e5f5
to
8925334
Compare
7ae0fa9
to
fcb79d4
Compare
Review status: 0 of 6 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. worker/draft.go, line 138 at r1 (raw file):
This can be asserted. worker/draft.go, line 924 at r1 (raw file):
Scheduler can do this before scheduling it concurrently. It should see this serially first. worker/draft.go, line 49 at r2 (raw file):
move to scheduler.go. worker/draft.go, line 172 at r2 (raw file):
set err := pd.err while you still have the lock. Otherwise, this is a race cond. worker/draft.go, line 190 at r2 (raw file):
Add a comment about this. worker/draft.go, line 202 at r2 (raw file):
Move this to worker/scheduler.go worker/draft.go, line 282 at r2 (raw file):
posting/index.go, line 427 at r1 (raw file):
Create a helper function, which you can pass directly here; and reuse. posting/index.go, line 780 at r1 (raw file):
Remove this as well. posting/index.go, line 806 at r1 (raw file):
Don't make it part of this PR. posting/lists.go, line 407 at r1 (raw file):
s/pl's/posting lists/g posting/lru.go, line 177 at r1 (raw file):
s/f/remove posting/lru.go, line 183 at r1 (raw file):
if !remove(kv.pl.key) { Comments from Reviewable |
096f296
to
90dbe2e
Compare
99205c5
to
3413395
Compare
Review status: 0 of 7 files reviewed at latest revision, 13 unresolved discussions. worker/draft.go, line 138 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 924 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 49 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 172 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 190 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 202 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 282 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. posting/index.go, line 427 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. In other PR posting/index.go, line 780 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. posting/index.go, line 806 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. posting/lists.go, line 407 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. posting/lru.go, line 177 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. posting/lru.go, line 183 at r1 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. Comments from Reviewable |
Review status: 0 of 7 files reviewed at latest revision, 15 unresolved discussions. worker/draft.go, line 630 at r4 (raw file):
This ref tracking should be done by the scheduler. worker/scheduler.go, line 45 at r4 (raw file):
No need. worker/scheduler.go, line 52 at r4 (raw file):
Yeah, maybe just block everything. worker/scheduler.go, line 61 at r4 (raw file):
1000 should be enough. worker/scheduler.go, line 62 at r4 (raw file):
No need. worker/scheduler.go, line 64 at r4 (raw file):
1 should be enough. worker/scheduler.go, line 88 at r4 (raw file):
worker/scheduler.go, line 93 at r4 (raw file):
Just continue running mutations. worker/scheduler.go, line 103 at r4 (raw file):
worker/scheduler.go, line 139 at r4 (raw file):
if total == 0 { return } worker/scheduler.go, line 142 at r4 (raw file):
Better to only mark applied as done once, instead of for every edge. worker/scheduler.go, line 143 at r4 (raw file):
same here. worker/scheduler.go, line 147 at r4 (raw file):
just run them here. worker/scheduler.go, line 200 at r4 (raw file):
No need for this func. x/watermark.go, line 56 at r4 (raw file):
No need for this change. Comments from Reviewable |
Reviewed 1 of 13 files at r1, 4 of 10 files at r3, 2 of 2 files at r5. worker/draft.go, line 107 at r5 (raw file):
and this. worker/draft.go, line 108 at r5 (raw file):
Add a comment about this. worker/draft.go, line 165 at r5 (raw file):
Add a comment why you're marking it as done. worker/draft.go, line 580 at r5 (raw file):
Right next to Add, and vertical space after. worker/draft.go, line 627 at r5 (raw file):
full stop. worker/mutation.go, line 44 at r5 (raw file):
runMutation, singular. worker/mutation.go, line 89 at r5 (raw file):
runSchemaMutation. worker/scheduler.go, line 64 at r5 (raw file):
Move this func within processTasks. Comments from Reviewable |
Review status: 3 of 6 files reviewed at latest revision, 23 unresolved discussions. worker/draft.go, line 630 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 107 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 108 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 165 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 580 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/draft.go, line 627 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/mutation.go, line 44 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/mutation.go, line 89 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 45 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 52 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 61 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 62 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 64 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 88 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 93 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 103 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 139 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 142 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 143 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 147 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 200 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. worker/scheduler.go, line 64 at r5 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. x/watermark.go, line 56 at r4 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. Comments from Reviewable |
This commit brings following new changes from badger This commit also disable conflict detection in badger to save memory. ``` 0dfb8b4 Changelog for v20.07.0 (#1411) 03ba278 Add missing changelog for v2.0.3 (#1410) 6001230 Revert "Compress/Encrypt Blocks in the background (#1227)" (#1409) 800305e Revert "Buffer pool for decompression (#1308)" (#1408) 63d9309 Revert "fix: Fix race condition in block.incRef (#1337)" (#1407) e0d058c Revert "add assert to check integer overflow for table size (#1402)" (#1406) d981f47 return error if the vlog writes exceeds more that 4GB. (#1400) 7f4e4b5 add assert to check integer overflow for table size (#1402) 8e896a7 Add a contribution guide (#1379) b79aeef Avoid panic on multiple closer.Signal calls (#1401) 717b89c Enable cross-compiled 32bit tests on TravisCI (#1392) 09dfa66 Update ristretto to commit f66de99 (#1391) 509de73 Update head while replaying value log (#1372) e013bfd Rework DB.DropPrefix (#1381) 3042e37 pre allocate cache key for the block cache and the bloom filter cache (#1371) 675efcd Increase default valueThreshold from 32B to 1KB (#1346) 158d927 Remove second initialization of writech in Open (#1382) d37ce36 Tests: Use t.Parallel in TestIteratePrefix tests (#1377) 3f4761d Force KeepL0InMemory to be true when InMemory is true (#1375) dd332b0 Avoid panic in filltables() (#1365) c45d966 Fix assert in background compression and encryption. (#1366) ```
Scheduler ensures that del and set for same uid,predicate pair always run in fifo order, schema mutations only blocks mtuations for corresponding predicates, if schema is not specified mutations for a given predicate wait on the first mutation.
TODO: Add Tests
This change is