diff --git a/dgraph/cmd/zero/zero.go b/dgraph/cmd/zero/zero.go index 79972164903..51febe48c40 100644 --- a/dgraph/cmd/zero/zero.go +++ b/dgraph/cmd/zero/zero.go @@ -535,7 +535,7 @@ func (s *Server) ShouldServe( if len(tablet.Predicate) == 0 { return resp, x.Errorf("Tablet predicate is empty in %+v", tablet) } - if tablet.GroupId == 0 { + if tablet.GroupId == 0 && !tablet.ReadOnly { return resp, x.Errorf("Group ID is Zero in %+v", tablet) } @@ -548,6 +548,11 @@ func (s *Server) ShouldServe( // serving. return tab, nil } + if tab == nil && tablet.ReadOnly { + // Read-only requests should return an empty tablet instead of asking zero to serve + // the predicate. + return &pb.Tablet{}, nil + } // Set the tablet to be served by this server's group. var proposal pb.ZeroProposal diff --git a/protos/pb.proto b/protos/pb.proto index 126a06e44c8..333242bc4e5 100644 --- a/protos/pb.proto +++ b/protos/pb.proto @@ -175,6 +175,7 @@ message Tablet { bool force = 3; // Used while moving predicate. int64 space = 7; bool remove = 8; + bool read_only = 9; // If true, do not ask zero to serve any tablets. } message DirectedEdge { diff --git a/protos/pb/pb.pb.go b/protos/pb/pb.pb.go index 0e749a63aec..c70003a60a6 100644 --- a/protos/pb/pb.pb.go +++ b/protos/pb/pb.pb.go @@ -1368,6 +1368,7 @@ type Tablet struct { Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` Space int64 `protobuf:"varint,7,opt,name=space,proto3" json:"space,omitempty"` Remove bool `protobuf:"varint,8,opt,name=remove,proto3" json:"remove,omitempty"` + ReadOnly bool `protobuf:"varint,9,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1441,6 +1442,13 @@ func (m *Tablet) GetRemove() bool { return false } +func (m *Tablet) GetReadOnly() bool { + if m != nil { + return m.ReadOnly + } + return false +} + type DirectedEdge struct { Entity uint64 `protobuf:"fixed64,1,opt,name=entity,proto3" json:"entity,omitempty"` Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"` @@ -3645,216 +3653,217 @@ func init() { func init() { proto.RegisterFile("pb.proto", fileDescriptor_f80abaa17e25ccc8) } var fileDescriptor_f80abaa17e25ccc8 = []byte{ - // 3342 bytes of a gzipped FileDescriptorProto + // 3350 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x39, 0xcb, 0x72, 0x24, 0x57, - 0x56, 0x9d, 0xf5, 0xc8, 0xca, 0x3c, 0x55, 0x52, 0x97, 0xaf, 0x3d, 0xed, 0xb2, 0x3c, 0xd3, 0x2d, - 0xa7, 0x1f, 0x2d, 0xb7, 0x6d, 0x75, 0x5b, 0x36, 0x30, 0x1e, 0x82, 0x85, 0x5a, 0xaa, 0x6e, 0x64, - 0xeb, 0xc5, 0xad, 0x52, 0x0f, 0x38, 0x08, 0x2a, 0xae, 0x32, 0xaf, 0x4a, 0x39, 0xca, 0xca, 0x4c, - 0xf2, 0x66, 0x29, 0x4a, 0xde, 0xb1, 0x80, 0x80, 0x3f, 0x98, 0x05, 0xc1, 0x8e, 0x0d, 0x1b, 0xb6, - 0xb3, 0x64, 0x43, 0x04, 0x4b, 0x82, 0x2f, 0x20, 0x0c, 0xdf, 0x40, 0x04, 0x3b, 0xe2, 0x9c, 0x7b, - 0xf3, 0x51, 0xd5, 0xea, 0xf6, 0x98, 0x88, 0x59, 0x55, 0x9e, 0xc7, 0x7d, 0x9d, 0xf7, 0x39, 0x05, - 0x4e, 0x7a, 0xbe, 0x9d, 0x66, 0x49, 0x9e, 0xb0, 0x46, 0x7a, 0xbe, 0xe1, 0x8a, 0x34, 0xd4, 0xe0, - 0xc6, 0xc3, 0x69, 0x98, 0x5f, 0xce, 0xcf, 0xb7, 0xfd, 0x64, 0xf6, 0x38, 0x98, 0x66, 0x22, 0xbd, - 0xfc, 0x2c, 0x4c,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0x48, 0x2a, 0x25, 0xa6, 0x92, 0x3d, 0x80, 0x76, 0x82, 0xdb, 0x1a, 0x09, 0xbb, 0x78, 0x27, - 0x3a, 0x87, 0x6b, 0xfc, 0x8a, 0x1e, 0x1a, 0xaf, 0xd6, 0x03, 0x5a, 0x09, 0xf9, 0x51, 0xd3, 0x58, - 0x09, 0x79, 0xd1, 0x3d, 0xb0, 0x93, 0x8b, 0x0b, 0x25, 0xb5, 0x2c, 0xdb, 0xdc, 0x40, 0xaf, 0x34, - 0x36, 0xef, 0xf7, 0x00, 0xf0, 0x7e, 0x3f, 0xd2, 0x0a, 0xbc, 0x4b, 0xe8, 0x72, 0x71, 0x91, 0xef, - 0x25, 0x71, 0x2e, 0x17, 0x39, 0x5b, 0x87, 0x46, 0x18, 0x90, 0x88, 0x6c, 0xde, 0x08, 0x03, 0xbc, - 0xdc, 0x34, 0x4b, 0xe6, 0x29, 0x49, 0x68, 0x8d, 0x6b, 0x80, 0x44, 0x19, 0x04, 0x19, 0xdd, 0x18, - 0x45, 0x19, 0x04, 0x19, 0x7b, 0x00, 0x5d, 0x15, 0x8b, 0x54, 0x5d, 0x26, 0x39, 0x5e, 0xae, 0x45, - 0x97, 0x83, 0x02, 0x35, 0x56, 0xde, 0xbf, 0x5a, 0x60, 0x1f, 0xc9, 0xd9, 0xb9, 0xcc, 0x5e, 0x3a, - 0xe5, 0x1d, 0x70, 0x68, 0xe3, 0x49, 0x18, 0x98, 0x83, 0x3a, 0x04, 0x1f, 0x04, 0xb7, 0x1e, 0x75, - 0x0f, 0xec, 0x48, 0x0a, 0x14, 0xbe, 0xb6, 0x33, 0x03, 0xa1, 0x6c, 0xc4, 0x6c, 0x12, 0x48, 0x11, - 0x50, 0xe0, 0x71, 0xb8, 0x2d, 0x66, 0xfb, 0x52, 0x04, 0x78, 0xb7, 0x48, 0xa8, 0x7c, 0x32, 0x4f, - 0x03, 0x91, 0x4b, 0x0a, 0x38, 0x2d, 0x34, 0x1c, 0x95, 0x9f, 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 0x93, - 0x62, 0x56, 0x63, 0x5f, 0x16, 0xd3, 0x6d, 0xad, 0x24, 0x49, 0xeb, 0x13, 0xb0, 0x75, 0x90, 0x59, - 0x59, 0xb0, 0xda, 0x15, 0x12, 0xf3, 0x43, 0xe8, 0x8e, 0x2e, 0x93, 0x79, 0x14, 0x8c, 0x64, 0x76, - 0x2d, 0x59, 0x6d, 0xda, 0xba, 0x51, 0xfb, 0xf6, 0xee, 0xb0, 0x2d, 0x00, 0xed, 0x65, 0x67, 0x61, - 0xa0, 0x58, 0x07, 0x69, 0xc7, 0xf3, 0x99, 0xde, 0xb4, 0xe6, 0x7e, 0x9a, 0xb3, 0x16, 0x6b, 0x5e, - 0xc7, 0xf9, 0x05, 0xac, 0xed, 0x51, 0x2c, 0x3e, 0xc9, 0x76, 0xcf, 0x93, 0x2c, 0x67, 0xab, 0x13, - 0xd7, 0x8d, 0x55, 0x84, 0x77, 0x87, 0x3d, 0x01, 0x67, 0x9c, 0xdd, 0x68, 0xfe, 0x37, 0x4c, 0x88, - 0xae, 0xce, 0xbb, 0xe5, 0x95, 0x3b, 0xff, 0xd8, 0x04, 0xfb, 0x97, 0x49, 0x76, 0x25, 0x33, 0xf6, - 0x08, 0x6c, 0x6a, 0xdf, 0x8d, 0x11, 0x95, 0xad, 0xfc, 0x6d, 0x07, 0x7d, 0x00, 0x2e, 0x09, 0x65, - 0x2c, 0xd4, 0x95, 0x56, 0x15, 0xfd, 0x2d, 0xab, 0xe5, 0xa2, 0x8b, 0x37, 0xd2, 0xeb, 0xba, 0x56, - 0x54, 0x39, 0xb2, 0x58, 0xea, 0xa9, 0x37, 0x3a, 0xba, 0x41, 0x1e, 0x79, 0x77, 0xb6, 0xac, 0x27, - 0x16, 0xfb, 0x18, 0x5a, 0x23, 0xfd, 0x52, 0x64, 0xaa, 0xfe, 0xa4, 0xda, 0x58, 0x2f, 0x10, 0xe5, - 0xce, 0x8f, 0xc1, 0xd6, 0x99, 0x5d, 0x3f, 0x73, 0xa9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 0x8d, 0x11, 0x07, 0x07, 0x64, 0x30, 0xec, 0x28, 0x1a, 0x34, 0x3b, 0x6d, 0x26, + 0xf4, 0xed, 0x0d, 0xa1, 0x7d, 0x92, 0x05, 0x32, 0xbb, 0xd5, 0xf2, 0x19, 0xb4, 0x02, 0xa9, 0x7c, + 0x72, 0x4a, 0x87, 0xd3, 0x77, 0xe5, 0x0d, 0xcd, 0x9a, 0x37, 0x78, 0x7f, 0x67, 0x41, 0x77, 0x94, + 0x64, 0xf9, 0x91, 0x54, 0x4a, 0x4c, 0x25, 0x7b, 0x00, 0xed, 0x04, 0xb7, 0x35, 0x12, 0x76, 0xf1, + 0x4e, 0x74, 0x0e, 0xd7, 0xf8, 0x15, 0x3d, 0x34, 0x5e, 0xad, 0x07, 0xb4, 0x12, 0xf2, 0xa3, 0xa6, + 0xb1, 0x12, 0xf2, 0xa2, 0x7b, 0x60, 0x27, 0x17, 0x17, 0x4a, 0x6a, 0x59, 0xb6, 0xb9, 0x81, 0x5e, + 0x69, 0x6c, 0xde, 0xef, 0x00, 0xe0, 0xfd, 0x7e, 0xa4, 0x15, 0x78, 0x97, 0xd0, 0xe5, 0xe2, 0x22, + 0xdf, 0x4b, 0xe2, 0x5c, 0x2e, 0x72, 0xb6, 0x0e, 0x8d, 0x30, 0x20, 0x11, 0xd9, 0xbc, 0x11, 0x06, + 0x78, 0xb9, 0x69, 0x96, 0xcc, 0x53, 0x92, 0xd0, 0x1a, 0xd7, 0x00, 0x89, 0x32, 0x08, 0x32, 0xba, + 0x31, 0x8a, 0x32, 0x08, 0x32, 0xf6, 0x00, 0xba, 0x2a, 0x16, 0xa9, 0xba, 0x4c, 0x72, 0xbc, 0x5c, + 0x8b, 0x2e, 0x07, 0x05, 0x6a, 0xac, 0xbc, 0x7f, 0xb1, 0xc0, 0x3e, 0x92, 0xb3, 0x73, 0x99, 0xbd, + 0x74, 0xca, 0x3b, 0xe0, 0xd0, 0xc6, 0x93, 0x30, 0x30, 0x07, 0x75, 0x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0x6c, 0xe5, 0x5f, 0xca, 0x99, 0x18, 0xb4, 0x2a, 0xc6, 0x11, 0x61, 0x74, 0x06, 0xe6, + 0x86, 0x4e, 0x8d, 0x45, 0x96, 0xa4, 0x54, 0x69, 0xb7, 0x4d, 0x63, 0x91, 0x25, 0x29, 0xd6, 0xd9, + 0x3b, 0xf0, 0x93, 0x70, 0x1a, 0x27, 0x99, 0x9c, 0x84, 0x71, 0x20, 0x17, 0x13, 0x3f, 0x89, 0x2f, + 0xa2, 0xd0, 0xcf, 0x49, 0x96, 0x0e, 0x7f, 0x53, 0x13, 0x0f, 0x90, 0xb6, 0x67, 0x48, 0xec, 0x7d, + 0x68, 0xa3, 0xe2, 0x94, 0x71, 0x7e, 0x2a, 0x36, 0x51, 0x47, 0xe6, 0x54, 0x4d, 0xf4, 0x16, 0xe0, + 0x14, 0xa1, 0x95, 0x7d, 0x84, 0x31, 0x91, 0x42, 0xb3, 0xf1, 0x2c, 0xea, 0x27, 0x6a, 0x35, 0x12, + 0x2f, 0xe8, 0xa8, 0x4c, 0xba, 0x49, 0x11, 0x6c, 0x09, 0xa8, 0x57, 0x68, 0xcd, 0xa5, 0x76, 0x00, + 0x8b, 0xcd, 0x24, 0x96, 0xa6, 0x68, 0xa1, 0x6f, 0xef, 0x6f, 0x1b, 0xe0, 0x94, 0xd9, 0xf0, 0x63, + 0x70, 0x67, 0x85, 0x42, 0x8c, 0xcf, 0x52, 0x39, 0x5e, 0x6a, 0x89, 0x57, 0x74, 0x76, 0x0f, 0x1a, + 0x57, 0xd7, 0x46, 0x9c, 0x36, 0x72, 0x7d, 0xfd, 0x82, 0x37, 0xae, 0xae, 0x2b, 0xa7, 0x6f, 0x7f, + 0xaf, 0xd3, 0x3f, 0x84, 0xbb, 0x7e, 0x24, 0x45, 0x3c, 0xa9, 0x7c, 0x56, 0x9b, 0xe5, 0x3a, 0xa1, + 0x4f, 0x4b, 0xc7, 0x35, 0x81, 0xab, 0x53, 0xa5, 0xa7, 0x0f, 0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0xaa, 0xa2, 0xff, 0x6c, 0xb5, + 0x5c, 0x74, 0xf1, 0x46, 0x7a, 0x5d, 0xd7, 0x8a, 0x2a, 0x47, 0x16, 0x4b, 0x3d, 0xf5, 0x46, 0x47, + 0x37, 0xc8, 0x23, 0xef, 0xce, 0x96, 0xf5, 0xc4, 0x62, 0x1f, 0x41, 0x6b, 0xa4, 0x5f, 0x8a, 0x4c, + 0xd5, 0x3f, 0x58, 0x1b, 0xeb, 0x05, 0xa2, 0xdc, 0xf9, 0x31, 0xd8, 0x3a, 0xb3, 0xeb, 0x67, 0x2e, + 0x95, 0xab, 0x1b, 0xfd, 0x3a, 0xca, 0x2c, 0xf8, 0x08, 0x6c, 0x1d, 0x34, 0xf4, 0x82, 0xa5, 0x00, + 0xa2, 0x6f, 0xad, 0x63, 0x90, 0x66, 0xd5, 0x5e, 0xae, 0x59, 0x97, 0x3c, 0x7e, 0x85, 0xf5, 0x53, + 0xe8, 0x73, 0xe9, 0xcb, 0xb0, 0x96, 0xf3, 0x59, 0xf1, 0xa8, 0x55, 0xb3, 0xdd, 0xb2, 0xd8, 0x97, + 0xb0, 0xb6, 0x54, 0x1f, 0xb0, 0x01, 0x09, 0xfa, 0x96, 0x92, 0x61, 0x75, 0xf1, 0xd3, 0xfe, 0xbf, + 0x7e, 0x77, 0xdf, 0xfa, 0xb7, 0xef, 0xee, 0x5b, 0xff, 0xf1, 0xdd, 0x7d, 0xeb, 0x37, 0xff, 0x79, + 0xff, 0xce, 0xb9, 0x4d, 0xff, 0xf5, 0x7f, 0xfe, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xae, 0x40, + 0x09, 0x1c, 0x2f, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -5905,6 +5914,16 @@ func (m *Tablet) MarshalTo(dAtA []byte) (int, error) { } i++ } + if m.ReadOnly { + dAtA[i] = 0x48 + i++ + if m.ReadOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } @@ -7996,6 +8015,9 @@ func (m *Tablet) Size() (n int) { if m.Remove { n += 2 } + if m.ReadOnly { + n += 2 + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -12025,6 +12047,26 @@ func (m *Tablet) Unmarshal(dAtA []byte) error { } } m.Remove = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPb(dAtA[iNdEx:]) diff --git a/query/query.go b/query/query.go index 1bd6b7d80a6..ce4089bc6e9 100644 --- a/query/query.go +++ b/query/query.go @@ -171,6 +171,7 @@ type SubGraph struct { ReadTs uint64 Cache int Attr string + UnknownAttr bool Params params counts []uint32 valueMatrix []*pb.ValueList @@ -2031,7 +2032,9 @@ func ProcessGraph(ctx context.Context, sg, parent *SubGraph, rch chan error) { return } result, err := worker.ProcessTaskOverNetwork(ctx, taskQuery) - if err != nil { + if err != nil && strings.Contains(err.Error(), worker.ErrUnservedTabletMessage) { + sg.UnknownAttr = true + } else if err != nil { rch <- err return } diff --git a/query/query0_test.go b/query/query0_test.go index db4f10a8705..49999d82dc4 100644 --- a/query/query0_test.go +++ b/query/query0_test.go @@ -946,7 +946,7 @@ func TestQueryVarValOrderError(t *testing.T) { ` _, err := processQuery(t, context.Background(), query) require.Error(t, err) - require.Contains(t, err.Error(), "Cannot sort attribute n of type object.") + require.Contains(t, err.Error(), "Cannot sort by unknown attribute n") } func TestQueryVarValOrderDesc(t *testing.T) { diff --git a/query/recurse.go b/query/recurse.go index a06b6bb3557..cd4861c3bd2 100644 --- a/query/recurse.go +++ b/query/recurse.go @@ -51,6 +51,10 @@ func (start *SubGraph) expandRecurse(ctx context.Context, maxDepth uint64) error return ctx.Err() } + if start.UnknownAttr { + return nil + } + // Add children back and expand if necessary if exec, err = expandChildren(ctx, start, startChildren); err != nil { return err @@ -90,6 +94,10 @@ func (start *SubGraph) expandRecurse(ctx context.Context, maxDepth uint64) error } for _, sg := range exec { + if sg.UnknownAttr { + continue + } + if len(sg.Filters) > 0 { // We need to do this in case we had some filters. sg.updateUidMatrix() @@ -126,6 +134,9 @@ func (start *SubGraph) expandRecurse(ctx context.Context, maxDepth uint64) error var out []*SubGraph var exp []*SubGraph for _, sg := range exec { + if sg.UnknownAttr == true { + continue + } if len(sg.DestUIDs.Uids) == 0 { continue } diff --git a/query/shortest.go b/query/shortest.go index a0a78300246..7f5542759c2 100644 --- a/query/shortest.go +++ b/query/shortest.go @@ -176,6 +176,10 @@ func (sg *SubGraph) expandOut(ctx context.Context, rch <- ctx.Err() return default: + if subgraph.UnknownAttr { + continue + } + // Send the destuids in res chan. for mIdx, fromUID := range subgraph.SrcUIDs.Uids { for lIdx, toUID := range subgraph.uidMatrix[mIdx].Uids { diff --git a/worker/draft.go b/worker/draft.go index 09e9b267f6c..7a601dd6a87 100644 --- a/worker/draft.go +++ b/worker/draft.go @@ -182,8 +182,10 @@ func (n *node) applyMutations(ctx context.Context, proposal *pb.Proposal) (rerr return err } - if !groups().ServesTablet(s.Predicate) { - return fmt.Errorf("Group 1 should always serve reserved predicate %s", + if servesTablet, err := groups().ServesTablet(s.Predicate); err != nil { + return err + } else if !servesTablet { + return fmt.Errorf("group 1 should always serve reserved predicate %s", s.Predicate) } } diff --git a/worker/export.go b/worker/export.go index 357cce05d0c..bda92249e80 100644 --- a/worker/export.go +++ b/worker/export.go @@ -290,7 +290,7 @@ func export(ctx context.Context, in *pb.ExportRequest) error { if pk.Attr == "_predicate_" { return false } - if !groups().ServesTablet(pk.Attr) { + if servesTablet, err := groups().ServesTablet(pk.Attr); err != nil || !servesTablet { return false } // We need to ensure that schema keys are separately identifiable, so they can be diff --git a/worker/groups.go b/worker/groups.go index 7cc42ea52f9..e421e0d41d3 100644 --- a/worker/groups.go +++ b/worker/groups.go @@ -158,7 +158,10 @@ func (g *groupi) informZeroAboutTablets() { failed := false preds := schema.State().Predicates() for _, pred := range preds { - if tablet := g.Tablet(pred); tablet == nil { + if tablet, err := g.Tablet(pred); err != nil { + failed = true + glog.Errorf("Error while getting tablet for pred %q: %v", pred, err) + } else if tablet == nil { failed = true } } @@ -308,31 +311,76 @@ func (g *groupi) ChecksumsMatch(ctx context.Context) error { } } -func (g *groupi) BelongsTo(key string) uint32 { - tablet := g.Tablet(key) +func (g *groupi) BelongsTo(key string) (uint32, error) { + if tablet, err := g.Tablet(key); err != nil { + return 0, err + } else if tablet != nil { + return tablet.GroupId, nil + } + return 0, nil +} + +// BelongsToReadOnly acts like BelongsTo except it does not ask zero to serve +// the tablet for key if no group is currently serving it. +func (g *groupi) BelongsToReadOnly(key string) (uint32, error) { + g.RLock() + tablet := g.tablets[key] + g.RUnlock() if tablet != nil { - return tablet.GroupId + return tablet.GetGroupId(), nil } - return 0 + + // We don't know about this tablet. Talk to dgraphzero to find out who is + // serving this tablet. + pl := g.connToZeroLeader() + zc := pb.NewZeroClient(pl.Get()) + + tablet = &pb.Tablet{ + Predicate: key, + ReadOnly: true, + } + out, err := zc.ShouldServe(context.Background(), tablet) + if err != nil { + glog.Errorf("Error while ShouldServe grpc call %v", err) + return 0, err + } + if out.GetGroupId() == 0 { + return 0, nil + } + + g.Lock() + defer g.Unlock() + g.tablets[key] = out + return out.GetGroupId(), nil +} + +func (g *groupi) ServesTablet(key string) (bool, error) { + if tablet, err := g.Tablet(key); err != nil { + return false, err + } else if tablet != nil && tablet.GroupId == groups().groupId() { + return true, nil + } + return false, nil } -func (g *groupi) ServesTablet(key string) bool { - tablet := g.Tablet(key) - if tablet != nil && tablet.GroupId == groups().groupId() { - return true +// ServesTabletReadOnly acts like ServesTablet except it does not ask zero to +// serve the tablet for key if no group is currently serving it. +func (g *groupi) ServesTabletReadOnly(key string) (bool, error) { + gid, err := g.BelongsToReadOnly(key) + if err != nil { + return false, err } - return false + return gid == groups().groupId(), nil } // Do not modify the returned Tablet -// TODO: This should return error. -func (g *groupi) Tablet(key string) *pb.Tablet { +func (g *groupi) Tablet(key string) (*pb.Tablet, error) { // TODO: Remove all this later, create a membership state and apply it g.RLock() tablet, ok := g.tablets[key] g.RUnlock() if ok { - return tablet + return tablet, nil } // We don't know about this tablet. @@ -344,7 +392,7 @@ func (g *groupi) Tablet(key string) *pb.Tablet { out, err := zc.ShouldServe(context.Background(), tablet) if err != nil { glog.Errorf("Error while ShouldServe grpc call %v", err) - return nil + return nil, err } g.Lock() g.tablets[key] = out @@ -353,7 +401,7 @@ func (g *groupi) Tablet(key string) *pb.Tablet { if out.GroupId == groups().groupId() { glog.Infof("Serving tablet for: %v\n", key) } - return out + return out, nil } func (g *groupi) HasMeInState() bool { diff --git a/worker/mutation.go b/worker/mutation.go index 9fed5521e2c..b1a5c936faa 100644 --- a/worker/mutation.go +++ b/worker/mutation.go @@ -39,7 +39,8 @@ import ( ) var ( - errUnservedTablet = x.Errorf("Tablet isn't being served by this instance.") + ErrUnservedTabletMessage = "Tablet isn't being served by this instance" + errUnservedTablet = x.Errorf(ErrUnservedTabletMessage) ) func isStarAll(v []byte) bool { @@ -111,10 +112,12 @@ func runSchemaMutation(ctx context.Context, update *pb.SchemaUpdate, startTs uin } func runSchemaMutationHelper(ctx context.Context, update *pb.SchemaUpdate, startTs uint64) error { - if !groups().ServesTablet(update.Predicate) { - tablet := groups().Tablet(update.Predicate) + if tablet, err := groups().Tablet(update.Predicate); err != nil { + return err + } else if tablet.GetGroupId() != groups().groupId() { return x.Errorf("Tablet isn't being served by this group. Tablet: %+v", tablet) } + if err := checkSchema(update); err != nil { return err } @@ -442,10 +445,14 @@ func proposeOrSend(ctx context.Context, gid uint32, m *pb.Mutations, chr chan re // populateMutationMap populates a map from group id to the mutation that // should be sent to that group. -func populateMutationMap(src *pb.Mutations) map[uint32]*pb.Mutations { +func populateMutationMap(src *pb.Mutations) (map[uint32]*pb.Mutations, error) { mm := make(map[uint32]*pb.Mutations) for _, edge := range src.Edges { - gid := groups().BelongsTo(edge.Attr) + gid, err := groups().BelongsTo(edge.Attr) + if err != nil { + return nil, err + } + mu := mm[gid] if mu == nil { mu = &pb.Mutations{GroupId: gid} @@ -455,7 +462,11 @@ func populateMutationMap(src *pb.Mutations) map[uint32]*pb.Mutations { } for _, schema := range src.Schema { - gid := groups().BelongsTo(schema.Predicate) + gid, err := groups().BelongsTo(schema.Predicate) + if err != nil { + return nil, err + } + mu := mm[gid] if mu == nil { mu = &pb.Mutations{GroupId: gid} @@ -487,7 +498,7 @@ func populateMutationMap(src *pb.Mutations) map[uint32]*pb.Mutations { } } - return mm + return mm, nil } func commitOrAbort(ctx context.Context, startTs, commitTs uint64) error { @@ -511,7 +522,10 @@ func MutateOverNetwork(ctx context.Context, m *pb.Mutations) (*api.TxnContext, e defer span.End() tctx := &api.TxnContext{StartTs: m.StartTs} - mutationMap := populateMutationMap(m) + mutationMap, err := populateMutationMap(m) + if err != nil { + return tctx, err + } resCh := make(chan res, len(mutationMap)) for gid, mu := range mutationMap { diff --git a/worker/mutation_test.go b/worker/mutation_test.go index a72fc241a30..4a8070f5b61 100644 --- a/worker/mutation_test.go +++ b/worker/mutation_test.go @@ -126,7 +126,8 @@ func TestPopulateMutationMap(t *testing.T) { }} m := &pb.Mutations{Edges: edges, Schema: schema} - mutationsMap := populateMutationMap(m) + mutationsMap, err := populateMutationMap(m) + require.NoError(t, err) mu := mutationsMap[1] require.NotNil(t, mu) require.NotNil(t, mu.Edges) diff --git a/worker/predicate_move.go b/worker/predicate_move.go index 2dec7326900..83efe4f2aae 100644 --- a/worker/predicate_move.go +++ b/worker/predicate_move.go @@ -186,7 +186,9 @@ func (w *grpcWorker) MovePredicate(ctx context.Context, if err := posting.Oracle().WaitForTs(ctx, in.TxnTs); err != nil { return &emptyPayload, x.Errorf("While waiting for txn ts: %d. Error: %v", in.TxnTs, err) } - if !groups().ServesTablet(in.Predicate) { + if servesTablet, err := groups().ServesTablet(in.Predicate); err != nil { + return &emptyPayload, err + } else if !servesTablet { return &emptyPayload, errUnservedTablet } diff --git a/worker/proposal.go b/worker/proposal.go index 85220e08359..756bc202794 100644 --- a/worker/proposal.go +++ b/worker/proposal.go @@ -134,8 +134,9 @@ func (n *node) proposeAndWait(ctx context.Context, proposal *pb.Proposal) (perr var noTimeout bool checkTablet := func(pred string) error { - if tablet := groups().Tablet(pred); tablet == nil || - tablet.GroupId != groups().groupId() { + if tablet, err := groups().Tablet(pred); err != nil { + return err + } else if tablet == nil || tablet.GroupId != groups().groupId() { return errUnservedTablet } return nil diff --git a/worker/schema.go b/worker/schema.go index 7e22e6baf94..d8415aa3a8e 100644 --- a/worker/schema.go +++ b/worker/schema.go @@ -62,9 +62,12 @@ func getSchema(ctx context.Context, s *pb.SchemaRequest) (*pb.SchemaResult, erro for _, attr := range predicates { // This can happen after a predicate is moved. We don't delete predicate from schema state // immediately. So lets ignore this predicate. - if !groups().ServesTablet(attr) { + if servesTablet, err := groups().ServesTabletReadOnly(attr); err != nil { + return nil, err + } else if !servesTablet { continue } + if schemaNode := populateSchema(attr, fields); schemaNode != nil { result.Schema = append(result.Schema, schemaNode) } @@ -111,9 +114,13 @@ func populateSchema(attr string, fields []string) *api.SchemaNode { // addToSchemaMap groups the predicates by group id, if list of predicates is // empty then it adds all known groups -func addToSchemaMap(schemaMap map[uint32]*pb.SchemaRequest, schema *pb.SchemaRequest) { +func addToSchemaMap(schemaMap map[uint32]*pb.SchemaRequest, schema *pb.SchemaRequest) error { for _, attr := range schema.Predicates { - gid := groups().BelongsTo(attr) + gid, err := groups().BelongsTo(attr) + if err != nil { + return err + } + s := schemaMap[gid] if s == nil { s = &pb.SchemaRequest{GroupId: gid} @@ -123,7 +130,7 @@ func addToSchemaMap(schemaMap map[uint32]*pb.SchemaRequest, schema *pb.SchemaReq s.Predicates = append(s.Predicates, attr) } if len(schema.Predicates) > 0 { - return + return nil } // TODO: Janardhan - node shouldn't serve any request until membership // information is synced, should we fail health check till then ? @@ -139,6 +146,7 @@ func addToSchemaMap(schemaMap map[uint32]*pb.SchemaRequest, schema *pb.SchemaReq schemaMap[gid] = s } } + return nil } // If the current node serves the group serve the schema or forward @@ -178,7 +186,9 @@ func GetSchemaOverNetwork(ctx context.Context, schema *pb.SchemaRequest) ([]*api // Map of groupd id => Predicates for that group. schemaMap := make(map[uint32]*pb.SchemaRequest) - addToSchemaMap(schemaMap, schema) + if err := addToSchemaMap(schemaMap, schema); err != nil { + return nil, err + } results := make(chan resultErr, len(schemaMap)) var schemaNodes []*api.SchemaNode diff --git a/worker/sort.go b/worker/sort.go index 0e601a4ace3..77fac01e2a7 100644 --- a/worker/sort.go +++ b/worker/sort.go @@ -45,7 +45,13 @@ type sortresult struct { // SortOverNetwork sends sort query over the network. func SortOverNetwork(ctx context.Context, q *pb.SortMessage) (*pb.SortResult, error) { - gid := groups().BelongsTo(q.Order[0].Attr) + gid, err := groups().BelongsToReadOnly(q.Order[0].Attr) + if err != nil { + return &emptySortResult, err + } else if gid == 0 { + return &emptySortResult, fmt.Errorf("Cannot sort by unknown attribute %s", q.Order[0].Attr) + } + if span := otrace.FromContext(ctx); span != nil { span.Annotatef(nil, "worker.SortOverNetwork. Attr: %s. Group: %d", q.Order[0].Attr, gid) } @@ -59,7 +65,7 @@ func SortOverNetwork(ctx context.Context, q *pb.SortMessage) (*pb.SortResult, er return c.Sort(ctx, q) }) if err != nil { - return nil, err + return &emptySortResult, err } return result.(*pb.SortResult), nil } @@ -72,7 +78,11 @@ func (w *grpcWorker) Sort(ctx context.Context, s *pb.SortMessage) (*pb.SortResul ctx, span := otrace.StartSpan(ctx, "worker.Sort") defer span.End() - gid := groups().BelongsTo(s.Order[0].Attr) + gid, err := groups().BelongsToReadOnly(s.Order[0].Attr) + if err != nil { + return &emptySortResult, err + } + span.Annotatef(nil, "Sorting: Attribute: %q groupId: %v Sort", s.Order[0].Attr, gid) if gid != groups().groupId() { return nil, x.Errorf("attr: %q groupId: %v Request sent to wrong server.", s.Order[0].Attr, gid) diff --git a/worker/task.go b/worker/task.go index 0d09a91fb76..1c40e98482f 100644 --- a/worker/task.go +++ b/worker/task.go @@ -137,10 +137,13 @@ func processWithBackupRequest( // query. func ProcessTaskOverNetwork(ctx context.Context, q *pb.Query) (*pb.Result, error) { attr := q.Attr - gid := groups().BelongsTo(attr) - if gid == 0 { - return &pb.Result{}, errUnservedTablet + gid, err := groups().BelongsToReadOnly(attr) + if err != nil { + return &emptyResult, err + } else if gid == 0 { + return &emptyResult, errUnservedTablet } + span := otrace.FromContext(ctx) if span != nil { span.Annotatef(nil, "ProcessTaskOverNetwork. attr: %v gid: %v, readTs: %d, node id: %d", @@ -157,6 +160,9 @@ func ProcessTaskOverNetwork(ctx context.Context, q *pb.Query) (*pb.Result, error return c.ServeTask(ctx, q) }) + if err == errUnservedTablet { + return &emptyResult, errUnservedTablet + } if err != nil { return nil, err } @@ -716,7 +722,7 @@ func processTask(ctx context.Context, q *pb.Query, gid uint32) (*pb.Result, erro span.Annotatef(nil, "Waiting for startTs: %d", q.ReadTs) if err := posting.Oracle().WaitForTs(ctx, q.ReadTs); err != nil { - return nil, err + return &emptyResult, err } if span != nil { maxAssigned := posting.Oracle().MaxAssigned() @@ -724,15 +730,19 @@ func processTask(ctx context.Context, q *pb.Query, gid uint32) (*pb.Result, erro q.Attr, q.ReadTs, maxAssigned) } if err := groups().ChecksumsMatch(ctx); err != nil { - return nil, err + return &emptyResult, err } span.Annotatef(nil, "Done waiting for checksum match") - // If a group stops serving tablet and it gets partitioned away from group zero, then it - // wouldn't know that this group is no longer serving this predicate. - // There's no issue if a we are serving a particular tablet and we get partitioned away from - // group zero as long as it's not removed. - if !groups().ServesTablet(q.Attr) { + // If a group stops serving tablet and it gets partitioned away from group + // zero, then it wouldn't know that this group is no longer serving this + // predicate. There's no issue if a we are serving a particular tablet and + // we get partitioned away from group zero as long as it's not removed. + // ServesTabletReadOnly is called instead of ServesTablet to prevent this + // alpha from requesting to serve this tablet. + if servesTablet, err := groups().ServesTabletReadOnly(q.Attr); err != nil { + return &emptyResult, err + } else if !servesTablet { return &emptyResult, errUnservedTablet } var qs queryState @@ -1615,7 +1625,13 @@ func (w *grpcWorker) ServeTask(ctx context.Context, q *pb.Query) (*pb.Result, er return &emptyResult, ctx.Err() } - gid := groups().BelongsTo(q.Attr) + gid, err := groups().BelongsToReadOnly(q.Attr) + if err != nil { + return &emptyResult, err + } else if gid == 0 { + return &emptyResult, errUnservedTablet + } + var numUids int if q.UidList != nil { numUids = len(q.UidList.Uids) @@ -1623,8 +1639,8 @@ func (w *grpcWorker) ServeTask(ctx context.Context, q *pb.Query) (*pb.Result, er span.Annotatef(nil, "Attribute: %q NumUids: %v groupId: %v ServeTask", q.Attr, numUids, gid) if !groups().ServesGroup(gid) { - return nil, fmt.Errorf("Temporary error, attr: %q groupId: %v Request sent to wrong server", - q.Attr, gid) + return &emptyResult, fmt.Errorf( + "Temporary error, attr: %q groupId: %v Request sent to wrong server", q.Attr, gid) } type reply struct { @@ -1639,7 +1655,7 @@ func (w *grpcWorker) ServeTask(ctx context.Context, q *pb.Query) (*pb.Result, er select { case <-ctx.Done(): - return nil, ctx.Err() + return &emptyResult, ctx.Err() case reply := <-c: return reply.result, reply.err }