Repository: matrixorigin/matrixone
Pull request #4175 (2022-07-22 09:37:09)

logservice: treat shard not found as a temp error
**What type of PR is this?**

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

**Which issue(s) this PR fixes:**

issue #

**What this PR does / why we need it:**

Treat shard not found error as temp error. 

**Special notes for your reviewer:**

Not Available

**Additional documentation (e.g. design docs, usage docs, etc.):**

Not Available



Patch:
diff --git a/pkg/logservice/client.go b/pkg/logservice/client.go
index b06c99843..a3e7b3c50 100644
--- a/pkg/logservice/client.go
+++ b/pkg/logservice/client.go
@@ -55,6 +55,8 @@ type ClientConfig struct {
 	LogShardID uint64
 	// DNReplicaID is the replica ID of the DN that owns the created client.
 	DNReplicaID uint64
+	// DiscoveryAddress is the Log Service discovery address provided by k8s.
+	DiscoveryAddress string
 	// LogService nodes service addresses. This field is provided for testing
 	// purposes only.
 	ServiceAddresses []string
@@ -144,6 +146,8 @@ func NewClient(ctx context.Context,
 				e = err
 			}
 		} else {
+			// TODO: add a test to check whether it works when there is no truncated
+			// LSN known to the logservice.
 			if err := c.connectReadWrite(ctx); err == nil {
 				return c, nil
 			} else {
diff --git a/pkg/logservice/errors.go b/pkg/logservice/errors.go
index e00847c0e..7fbc2ca9f 100644
--- a/pkg/logservice/errors.go
+++ b/pkg/logservice/errors.go
@@ -48,6 +48,7 @@ func getErrorToCodeMapping() []errorToCode {
 		{dragonboat.ErrSystemBusy, pb.ShardNotReady, false},
 		{dragonboat.ErrClosed, pb.SystemClosed, true},
 		{dragonboat.ErrInvalidRange, pb.OutOfRange, true},
+		{dragonboat.ErrShardNotFound, pb.LogShardNotFound, true},
 
 		{ErrNotHAKeeper, pb.NotHAKeeper, true},
 		{ErrInvalidTruncateLsn, pb.LsnAlreadyTruncated, true},
@@ -88,7 +89,8 @@ func toError(resp pb.Response) error {
 }
 
 func isTempError(err error) bool {
-	if errors.Is(err, ErrNotHAKeeper) {
+	if errors.Is(err, ErrNotHAKeeper) ||
+		errors.Is(err, dragonboat.ErrShardNotFound) {
 		return true
 	}
 	if dragonboat.IsTempError(err) {
diff --git a/pkg/pb/logservice/logservice.pb.go b/pkg/pb/logservice/logservice.pb.go
index f96e7e653..e8b302a84 100644
--- a/pkg/pb/logservice/logservice.pb.go
+++ b/pkg/pb/logservice/logservice.pb.go
@@ -159,6 +159,7 @@ const (
 	OutOfRange          ErrorCode = 101
 	NotLeaseHolder      ErrorCode = 102
 	NotHAKeeper         ErrorCode = 103
+	LogShardNotFound    ErrorCode = 104
 	OtherSystemError    ErrorCode = 1000
 )
 
@@ -177,6 +178,7 @@ var ErrorCode_name = map[int32]string{
 	101:  "OutOfRange",
 	102:  "NotLeaseHolder",
 	103:  "NotHAKeeper",
+	104:  "LogShardNotFound",
 	1000: "OtherSystemError",
 }
 
@@ -195,6 +197,7 @@ var ErrorCode_value = map[string]int32{
 	"OutOfRange":          101,
 	"NotLeaseHolder":      102,
 	"NotHAKeeper":         103,
+	"LogShardNotFound":    104,
 	"OtherSystemError":    1000,
 }
 
@@ -2646,154 +2649,154 @@ func init() {
 func init() { proto.RegisterFile("logservice.proto", fileDescriptor_fd1040c5381ab5a7) }
 
 var fileDescriptor_fd1040c5381ab5a7 = []byte{
-	// 2337 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xdf, 0x6f, 0x1b, 0xc7,
-	0xf1, 0xd7, 0x91, 0x14, 0x45, 0x0d, 0x25, 0xfa, 0xb4, 0xb2, 0x6c, 0x46, 0xc9, 0x57, 0xf6, 0xf7,
-	0x9a, 0x1a, 0xae, 0x9a, 0x48, 0x80, 0x8c, 0x14, 0x4d, 0xab, 0xc4, 0xa0, 0x78, 0x8c, 0xc5, 0x58,
-	0x3e, 0x19, 0x47, 0xaa, 0x08, 0x0a, 0x04, 0xea, 0x89, 0xb7, 0xa2, 0xae, 0x26, 0xef, 0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c3,
-	0xf7, 0xc5, 0xf1, 0xc8, 0x9c, 0x43, 0x3c, 0xb8, 0x74, 0x18, 0x9d, 0x53, 0x49, 0x32, 0x18, 0x1e,
-	0x52, 0x2f, 0x4e, 0x25, 0xa5, 0x80, 0xde, 0xeb, 0xa4, 0xd1, 0x48, 0x12, 0x8a, 0x9b, 0xef, 0x68,
-	0x57, 0x55, 0x54, 0x8a, 0x05, 0x8b, 0x53, 0xcc, 0x39, 0xac, 0x17, 0x76, 0x28, 0x87, 0xc6, 0x5e,
-	0xeb, 0xd9, 0x37, 0x1b, 0x73, 0x5f, 0x3d, 0xdf, 0x30, 0x9e, 0x3d, 0xdf, 0x30, 0xfe, 0xf9, 0x7c,
-	0xc3, 0xf8, 0xf9, 0x3d, 0xe5, 0xcf, 0xe1, 0xd0, 0x4b, 0xe3, 0xe0, 0x69, 0x14, 0x07, 0xfd, 0x20,
-	0x94, 0x83, 0x90, 0x6e, 0x8f, 0x9e, 0xf4, 0xb7, 0x47, 0x27, 0xdb, 0x79, 0xb9, 0x3c, 0x29, 0xb3,
-	0xdf, 0x86, 0xf7, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0xf4, 0xa7, 0x4c, 0x45, 0x95, 0x1c, 0x00,
-	0x00,
+	// 2348 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0x4f, 0x6f, 0x1b, 0xc7,
+	0x15, 0xd7, 0x92, 0x14, 0x45, 0x3e, 0x4a, 0xf4, 0x6a, 0x64, 0xd9, 0x8c, 0x92, 0xca, 0xee, 0x36,
+	0x35, 0x5c, 0x35, 0x91, 0x00, 0x19, 0x29, 0x9a, 0x56, 0x89, 0x41, 0x71, 0x69, 0x8b, 0x31, 0xbd,
+	0x32, 0x96, 0x54, 0x11, 0x14, 0x08, 0xd4, 0x15, 0x77, 0x44, 0x6e, 0x4d, 0xee, 0xb2, 0xbb, 0x43,
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 0x30, 0xa7, 0xaf, 0xf5, 0xd4, 0xbd, 0x75, 0xdf, 0x17, 0x87, 0x26, 0x73,
+	0x81, 0xa2, 0xc4, 0xc5, 0xa3, 0xe8, 0x0c, 0x4b, 0x92, 0xc1, 0x50, 0x42, 0xbc, 0x98, 0x48, 0x4a,
+	0x8e, 0x7a, 0xaf, 0x43, 0xa2, 0xb1, 0x24, 0xe4, 0xb7, 0xde, 0xd1, 0x2e, 0xb0, 0x54, 0x29, 0x8d,
+	0x3b, 0xa7, 0x98, 0x0b, 0xb4, 0x8a, 0xd8, 0xa1, 0x1c, 0x1a, 0xfb, 0xcd, 0x67, 0x5f, 0x6f, 0x2e,
+	0x7c, 0xf9, 0x7c, 0xd3, 0x78, 0xf6, 0x7c, 0xd3, 0xf8, 0xf7, 0xf3, 0x4d, 0xe3, 0x97, 0xf7, 0x94,
+	0xff, 0x89, 0x23, 0x8f, 0xc4, 0xc1, 0x79, 0x14, 0x07, 0xfd, 0x20, 0x94, 0x83, 0x10, 0xef, 0x8c,
+	0x9f, 0xf6, 0x77, 0xc6, 0x27, 0x3b, 0x59, 0x11, 0x3d, 0x29, 0xb2, 0x9f, 0x89, 0xf7, 0xfe, 0x17,
+	0x00, 0x00, 0xff, 0xff, 0x65, 0x58, 0x12, 0x36, 0xab, 0x1c, 0x00, 0x00,
 }
 
 func (m *CNNode) Marshal() (dAtA []byte, err error) {
diff --git a/pkg/pb/plan/plan.pb.go b/pkg/pb/plan/plan.pb.go
index cad988c39..c20e000e5 100644
--- a/pkg/pb/plan/plan.pb.go
+++ b/pkg/pb/plan/plan.pb.go
@@ -896,6 +896,7 @@ func (m *Type) GetScale() int32 {
 type Const struct {
 	Isnull bool `protobuf:"varint,1,opt,name=isnull,proto3" json:"isnull,omitempty"`
 	// Types that are valid to be assigned to Value:
+	//
 	//	*Const_Ival
 	//	*Const_Dval
 	//	*Const_Sval
@@ -1684,6 +1685,7 @@ func (m *Function) GetArgs() []*Expr {
 type Expr struct {
 	Typ *Type `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"`
 	// Types that are valid to be assigned to Expr:
+	//
 	//	*Expr_C
 	//	*Expr_P
 	//	*Expr_V
@@ -1933,6 +1935,7 @@ func (m *DefaultExpr) GetIsNull() bool {
 
 type ConstantValue struct {
 	// Types that are valid to be assigned to ConstantValue:
+	//
 	//	*ConstantValue_UnknownV
 	//	*ConstantValue_Int64V
 	//	*ConstantValue_Decimal64V
@@ -2623,6 +2626,7 @@ func (m *TableDef) GetDefs() []*TableDef_DefType {
 
 type TableDef_DefType struct {
 	// Types that are valid to be assigned to Def:
+	//
 	//	*TableDef_DefType_Pk
 	//	*TableDef_DefType_Idx
 	//	*TableDef_DefType_Properties
@@ -3647,9 +3651,10 @@ func (m *Query) GetHeadings() []string {
 }
 
 type TransationControl struct {
-	//TransationControl type
+	// TransationControl type
 	TclType TransationControl_TclType `protobuf:"varint,1,opt,name=tcl_type,json=tclType,proto3,enum=plan.TransationControl_TclType" json:"tcl_type,omitempty"`
 	// Types that are valid to be assigned to Action:
+	//
 	//	*TransationControl_Begin
 	//	*TransationControl_Commit
 	//	*TransationControl_Rollback
@@ -3899,6 +3904,7 @@ func (m *TransationRollback) GetCompletionType() TransationCompletionType {
 
 type Plan struct {
 	// Types that are valid to be assigned to Plan:
+	//
 	//	*Plan_Query
 	//	*Plan_Tcl
 	//	*Plan_Ddl
@@ -4012,9 +4018,10 @@ func (*Plan) XXX_OneofWrappers() []interface{} {
 }
 
 type DataControl struct {
-	//DataDefinition type
+	// DataDefinition type
 	DclType DataControl_DclType `protobuf:"varint,1,opt,name=dcl_type,json=dclType,proto3,enum=plan.DataControl_DclType" json:"dcl_type,omitempty"`
 	// Types that are valid to be assigned to Control:
+	//
 	//	*DataControl_SetVariables
 	//	*DataControl_Prepare
 	//	*DataControl_Execute
@@ -4135,13 +4142,14 @@ func (*DataControl) XXX_OneofWrappers() []interface{} {
 }
 
 type DataDefinition struct {
-	//DataDefinition type
+	// DataDefinition type
 	DdlType DataDefinition_DdlType `protobuf:"varint,1,opt,name=ddl_type,json=ddlType,proto3,enum=plan.DataDefinition_DdlType" json:"ddl_type,omitempty"`
-	//other show statement we will rewrite to a select statement
-	//then we will get a Query
-	//eg: 'show databases' will rewrite to 'select md.datname as `Database` from mo_database md'
+	// other show statement we will rewrite to a select statement
+	// then we will get a Query
+	// eg: 'show databases' will rewrite to 'select md.datname as `Database` from mo_database md'
 	Query *Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
 	// Types that are valid to be assigned to Definition:
+	//
 	//	*DataDefinition_CreateDatabase
 	//	*DataDefinition_AlterDatabase
 	//	*DataDefinition_DropDatabase
diff --git a/pkg/pb/txn/txn.pb.go b/pkg/pb/txn/txn.pb.go
index 50830ee4e..66e4c8866 100644
--- a/pkg/pb/txn/txn.pb.go
+++ b/pkg/pb/txn/txn.pb.go
@@ -526,9 +526,9 @@ func (m *CNOpResponse) GetPayload() []byte {
 // to TxnMethod.
 //
 // Request flow of TxnRequest as below:
-// 1. CN -> DN (TxnMethod.Read, TxnMethod.Write, TxnMethod.Commit, TxnMethod.Rollback)
-// 2. DN -> DN (TxnMethod.Prepare, TxnMethod.GetStatus, TxnMethod.CommitDNShard, TxnMethod.RollbackDNShard,
-//             TxnMethod.RemoveMetadata)
+//  1. CN -> DN (TxnMethod.Read, TxnMethod.Write, TxnMethod.Commit, TxnMethod.Rollback)
+//  2. DN -> DN (TxnMethod.Prepare, TxnMethod.GetStatus, TxnMethod.CommitDNShard, TxnMethod.RollbackDNShard,
+//     TxnMethod.RemoveMetadata)
 type TxnRequest struct {
 	// RequestID request id
 	RequestID uint64 `protobuf:"varint,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"`
diff --git a/proto/logservice.proto b/proto/logservice.proto
index 171540dab..27e325a5b 100644
--- a/proto/logservice.proto
+++ b/proto/logservice.proto
@@ -190,6 +190,7 @@ enum ErrorCode {
   OutOfRange            = 101;
   NotLeaseHolder        = 102;
   NotHAKeeper           = 103;
+  LogShardNotFound      = 104;
 
   OtherSystemError      = 1000;
 };


Test patch:
diff --git a/pkg/logservice/client_test.go b/pkg/logservice/client_test.go
index b8b1d897b..afb3b9066 100644
--- a/pkg/logservice/client_test.go
+++ b/pkg/logservice/client_test.go
@@ -21,6 +21,7 @@ import (
 	"testing"
 	"time"
 
+	"github.com/lni/dragonboat/v4"
 	"github.com/lni/goutils/leaktest"
 	"github.com/lni/vfs"
 	"github.com/stretchr/testify/assert"
@@ -30,7 +31,7 @@ import (
 )
 
 func runClientTest(t *testing.T,
-	readOnly bool, fn func(*testing.T, ClientConfig, Client)) {
+	readOnly bool, fn func(*testing.T, *Service, ClientConfig, Client)) {
 	defer leaktest.AfterTest(t)()
 	cfg := getServiceTestConfig()
 	defer vfs.ReportLeakedFD(cfg.FS, t)
@@ -59,18 +60,30 @@ func runClientTest(t *testing.T,
 		assert.NoError(t, c.Close())
 	}()
 
-	fn(t, scfg, c)
+	fn(t, service, scfg, c)
+}
+
+func TestLogShardNotFoundErrorIsConsideredAsTempError(t *testing.T) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
+		require.NoError(t, s.store.stopReplica(1, 2))
+		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
+		defer cancel()
+		_, err := c.GetTSOTimestamp(ctx, 100)
+		require.Equal(t, dragonboat.ErrShardNotFound, err)
+		assert.True(t, isTempError(err))
+	}
+	runClientTest(t, false, fn)
 }
 
 func TestClientCanBeCreated(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 	}
 	runClientTest(t, false, fn)
 	runClientTest(t, true, fn)
 }
 
 func TestClientGetTSOTimestamp(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
 		defer cancel()
 		v, err := c.GetTSOTimestamp(ctx, 100)
@@ -89,7 +102,7 @@ func TestClientGetTSOTimestamp(t *testing.T) {
 }
 
 func TestClientAppend(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 		rec := c.GetLogRecord(16)
 		rand.Read(rec.Payload())
 		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
@@ -112,7 +125,7 @@ func TestClientAppend(t *testing.T) {
 
 // FIXME: actually enforce allowed allocation
 func TestClientAppendAlloc(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 		rec := c.GetLogRecord(16)
 		rand.Read(rec.Payload())
 		ac := testing.AllocsPerRun(1000, func() {
@@ -127,7 +140,7 @@ func TestClientAppendAlloc(t *testing.T) {
 }
 
 func TestClientRead(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 		rec := c.GetLogRecord(16)
 		rand.Read(rec.Payload())
 		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
@@ -157,7 +170,7 @@ func TestClientRead(t *testing.T) {
 }
 
 func TestClientTruncate(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 		rec := c.GetLogRecord(16)
 		rand.Read(rec.Payload())
 		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
@@ -177,7 +190,7 @@ func TestClientTruncate(t *testing.T) {
 }
 
 func TestReadOnlyClientRejectWriteRequests(t *testing.T) {
-	fn := func(t *testing.T, cfg ClientConfig, c Client) {
+	fn := func(t *testing.T, s *Service, cfg ClientConfig, c Client) {
 		rec := c.GetLogRecord(16)
 		rand.Read(rec.Payload())
 		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
diff --git a/pkg/logservice/errors_test.go b/pkg/logservice/errors_test.go
index f4d73884b..d5cc54ac2 100644
--- a/pkg/logservice/errors_test.go
+++ b/pkg/logservice/errors_test.go
@@ -66,6 +66,7 @@ func TestIsTempError(t *testing.T) {
 		{dragonboat.ErrShardNotReady, true},
 		{dragonboat.ErrInvalidTarget, false},
 		{dragonboat.ErrInvalidRange, false},
+		{dragonboat.ErrShardNotFound, true},
 
 		{ErrNotHAKeeper, true},