-
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
release(v20.11): merge master to bring in latest changes #7076
Merged
Conversation
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
#7018) * Add test for old restore to a cluster * Fix author query * fix(restore): Use correct version after marshalling The marshalPostingList function returns a KV without the version set and this causes issues if you restore a backup on top of an existing data. This PR fixes this issue by explicitly setting the version for the KV returned by the MarshalPostingList function. * Fix test for restoring old backup incremental * Address review comments * Add old backup dir * Add wait for restore, address review comments * Make test use tls, refactor out waitforrestore Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
…5) (#7016) This PR does the following things: * adds a counter in `/probe/graphql` response which indicate how many time the GraphQL schema has been updated. * adds some common test methods to update the GQL schema which ensure schema update using the counter. * Refactors existing tests to use those methods in order to update the GQL schema. * adds the best practice of using `common.RequireNoGQLErrors` instead of `require.Nil` for verifying that the `GraphQLResponse` has no errors. * enables some skipped tests in `graphql/e2e/admin_auth`. With this PR, all the flakiness around GraphQL schema updates should no longer be there.
The added directory is used in systest/backup/filesystem/docker-compose.yml.
* Update ludicrous-mode.md
This PR brings in the change of an increasing number of buffers from 32 to 64 in z.Allocator.
Update Badger to bring in fixes to reduce memory usage during snapshot streaming. dgraph-io/badger@3d225d7...70088c6 - Keep the cheaper parts of the index within table struct. (dgraph-io/badger#1608) - Fix(OOM): Reuse pb.KVs in Stream (dgraph-io/badger#1609)
…6981) * Note proper use and meaning of --replicas flag, minor rewording for style
Fix typo in "Variables" of query: "Example: Add mutation on single type using variables".
…#7051) This adds a new metric called dgraph_memory_alloc_bytes that tracks the jemalloc memory reported by z.NumAllocBytes(). Changes * Add dgraph_memory_alloc_bytes Prometheus metric. * Add a comment about runtime.ReadMemStats stopping the world.
* rephrase + added expample to query logging * rephrase + typos
The debug tool was using normal iterators which are very slow. This PR uses the stream framework in debug tool instead of the iterators.
- Opt(pickTables): Fix an optimization regression (dgraph-io/badger@74f2e02)
…7005) These metrics should be using LastCount to get the measured metric, not just the number of counted events.
Add --rollup flag in debug tool which allows key rollup.
* Use z.Allocator again * Update go.mod
Accessible via /jemalloc at Zero's HTTP port. http://localhost:6080/jemalloc Num Allocated Bytes: 0 B [0] Allocators: NO leaks found. Also, update to the latest Badger to fix OOMs during compaction.
When retrieving Uids, if we are not doing any filtering or ordering, then we should respect the first: N argument and only retrieve what's being asked for. This really speeds up the query execution. * We should respect first N argument * Deal with negative first
… type which are present in interface and also allow to inherit field of same name of type ID from multiple interfaces. (#7053) Fixes GRAPHQL-672 Currently, we don't allow the repetition of fields in implementing types that are in the interface. But according to GraphQl specs, we should allow them. Not allowing them can also result in unexpected behavior in some scenarios. For example, in the below example Banana type doesn't have any fields apart from that are in the Fruit interface. And we don't allow empty types. So allowing repetitive fields solve this problem. interface Fruit { id: ID! price: Int! } type Apple implements Fruit { id: ID! price: Int! color: String! } type Banana implements Fruit { id: ID! price: Int! } Also, currently, if we have two interfaces and a type that implements both then we don't allow a field of the same name in both of them. We are allowing it for ID type fields because it's required in some use cases and there is no problem with it as ID type field is not actually a predicate. interface I1 { f1: ID! } interface I2 { f1: ID! } type T implements I1 & I2 { f2: Int! }
NamanJain8
requested review from
danielmai,
manishrjain,
martinmr,
MichaelJCompton,
pawanrawal and
vvbalaji-dgraph
as code owners
December 7, 2020 10:47
github-actions
bot
added
area/documentation
Documentation related issues.
area/graphql
Issues related to GraphQL support on Dgraph.
area/testing
Testing related issues
labels
Dec 7, 2020
Deploy preview for dgraph-docs ready! Built with commit 0d85513 |
pawanrawal
approved these changes
Dec 7, 2020
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.
Make sure that CI passes and then merge. Changes look fine here.
jarifibrahim
approved these changes
Dec 7, 2020
* remove <X> <uid> <X> type of triplets from the output * fix output for recurse queries * fix for recurse queries * fix test * add Test for ignoring uid * minor modification * fix solution for recurse (cherry picked from commit 17df3f5)
danielmai
approved these changes
Dec 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/documentation
Documentation related issues.
area/graphql
Issues related to GraphQL support on Dgraph.
area/testing
Testing related issues
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.
This PR brings in the latest
master
torelease/v20.11
.Important ones among them are:
There were a bunch of improvements in
debug
tool and test scripts. A bunch of doc updates is there.The following are improvements and fixes from badger.
Performance:
Fixes:
This change is