Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/dgraph-io/dgraph. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Aug 12, 2021
  2. Aug 11, 2021
  3. Aug 10, 2021
  4. Aug 02, 2021
  5. Jul 30, 2021
    • Naman Jain's avatar
      fix(snapshot): update last snapshot time across members (#7968) · 357d81cd
      Naman Jain authored
      We see frequent snapshots in an HA cluster because of the leadership re-election because of leader crash/shutdown. The local variable that we use for snapshot frequency is not synchronized across alphas. So each alpha thinks differently about the time the last snapshot was taken.
      
      (cherry picked from commit 43055bf0)
      357d81cd
  6. Jul 29, 2021
  7. Jul 27, 2021
    • Manish R Jain's avatar
      fix(JoinCluster): Avoid retrying JoinCluster indefinitely (#7961) · c2e14760
      Manish R Jain authored
      If a Zero follower receives a JoinCluster request, it won't process the proposal because it can't forward the request to leader. Raft doesn't send an error back in this case. In the current code, it would retry indefinitely. With this change, we now use the request context to give up at some point.
      c2e14760
    • Ahsan Barkati's avatar
      fix(rollups): Write rolled-up keys at ts+1 (#7957) (#7959) · 3831b490
      Ahsan Barkati authored
      Write rolled up keys at (max ts of the deltas + 1) because if we write
      the rolled-up keys at the same ts as that of the delta, then in case of
      WAL replay the rolled-up key would get over-written by the delta which
      can bring DB to an invalid state.
      3831b490
    • Naman Jain's avatar
      feat(lambda): store lambda scripts within the dgraph, send it to JS s… (#7955) · b1266d02
      Naman Jain authored
      Related to dgraph-io/dgraph-lambda#22
      
      This PR changes the way lambda is handled by Dgraph. Earlier, the user had to start the server with a predefined lambda script. This does not scale well in a multi-tenant environment. As we will need N servers (or endpoints) to handle the load. Also, each time the script is changed, the lambda server needs to be restarted.
      
      With this change, instead of loading the script from the predefined file, we will be sending the script in the request body to the lambda-server.
      
      The details are mentioned in the discuss post. To summarize:
      
      Storage
      We will store the lambda script within dgraph.graphql.schema predicate. The value will be JSON marshal of
      
      type GQL struct {
         Script:     String
         Schema: String
      }
      This change has been done in a backward-compatible manner.
      
      New resolvers
      This adds 2 new admin resolvers:
      
      UpdateLambdaScript → accepts base64 encoded lambda script
      GetLambdaScript → Returns base64 encoded script
      Export/Import:
      The GraphQL schema is exported in a separate file in the following JSON format:
      [ExportedGQL] where ExportedGQL type is {Namespace: Int, Schema: String}. We will extend it to {Namespace: Int, Schema: String, Script: String} and hence the bulk loader can handle it properly.
      b1266d02
  8. Jul 16, 2021
  9. Jul 13, 2021
  10. Jul 02, 2021
  11. Jun 28, 2021
  12. Jun 25, 2021
  13. Jun 24, 2021
    • Naman Jain's avatar
      fix(groot): do not upsert groot for all namespaces on restart (#7917) · 6730f10b
      Naman Jain authored
      Earlier, whenever the alpha starts(or restarts), we were upserting guardian and groot for all the namespaces. This is not actually needed.
      The change was made in the PR #7759 to fix a bulk loader edge case.
      This PR fixes that by generating the required RDFs in the bulk loader itself. Essentially, it inserts the ACL RDFs when force loading into non-Galaxy namespace.
      6730f10b
  14. Jun 23, 2021
  15. Jun 22, 2021
  16. Jun 21, 2021
    • Manish R Jain's avatar
      fix(Raft): Detect network partition when streaming · eabe363e
      Manish R Jain authored
      When streaming raft messages in k8s cluster, we don't seem to get an
      error if the send didn't succeed. The packets get queued up, but don't
      fail and don't get sent. This causes a long re-election process.
      
      This PR periodically tries to send a message to the destination node via
      IsPeer, so it has another way to test the connection. If that fails, the
      streaming fails too, and the node is marked as unreachable.
      eabe363e
  17. Jun 17, 2021
  18. Jun 16, 2021
    • Ahsan Barkati's avatar
      opt(query): Use sroar in pb.List (#7864) · 3407eb10
      Ahsan Barkati authored
      
      Use roaring bitmaps in pb.List by default. We fall back to using sorted_uids 
      when we need the list to be ordered. The APIs defined in the codec acts as
      an abstraction layer that decides if sorted_uids or bitmap should be used. 
      sorted_uids are used if it is present, otherwise, the bitmap is used.
      
      Co-authored-by: default avatarManish R Jain <manish@dgraph.io>
      3407eb10
  19. Jun 10, 2021
    • minhaj-shakeel's avatar
      fix(GraphQL): optimize eq filter queries (#7895) · 314091ad
      minhaj-shakeel authored
      Fixes GQLSAAS-1236.
      This PR optimizes `eq` filter GraphQL queries.
      For ex:
      The below DQL query:
      ```
      query {
        queryPerson(filter: {nick: {eq: "Dgraph"}}){
          id
          name
          nick
        }
      }
      ```
      will now be written into:
      ```
      query {
        queryPerson(func: eq(Person.nick, "Dgraph")) @filter(type(Person)) {
          Person.id : uid
          Person.name : Person.name
          Person.nick : Person.nick
        }
      }
      ```
      which was earlier written into:-
      ```
      query {
        queryPerson(func: type(Person)) @filter(eq(Person.nick, "Dgraph")){
          Person.id : uid
          Person.name : Person.name
          Person.nick : Person.nick
        }
      }
      ```
      314091ad
  20. Jun 08, 2021
  21. Jun 04, 2021
  22. Jun 03, 2021
  23. Jun 02, 2021
  24. Jun 01, 2021
  25. May 31, 2021
Loading