Skip to content
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

TestRegionCheck is unstable #8519

Closed
okJiang opened this issue Aug 13, 2024 · 0 comments · Fixed by #8591
Closed

TestRegionCheck is unstable #8519

okJiang opened this issue Aug 13, 2024 · 0 comments · Fixed by #8591
Labels
type/ci The issue is related to CI.

Comments

@okJiang
Copy link
Member

okJiang commented Aug 13, 2024

Flaky Test

Which jobs are failing

TestRegionCheck

=== RUN   TestRegionTestSuite/TestRegionCheck
    region_test.go:151: 
        	Error Trace:	/home/runner/work/pd/pd/server/api/region_test.go:151
        	Error:      	Not equal: 
        	            	expected: &response.RegionsInfo{Count:1, Regions:[]response.RegionInfo{response.RegionInfo{ID:0x2, StartKey:"61", EndKey:"62", RegionEpoch:(*metapb.RegionEpoch)(0xc001a61920), Peers:[]response.MetaPeer{response.MetaPeer{Peer:(*metapb.Peer)(0xc001a21680), RoleName:"Voter", IsLearner:false}, response.MetaPeer{Peer:(*metapb.Peer)(0xc001a216c0), RoleName:"Voter", IsLearner:false}}, Leader:response.MetaPeer{Peer:(*metapb.Peer)(0xc001a21700), RoleName:"Voter", IsLearner:false}, DownPeers:[]response.PDPeerStats{response.PDPeerStats{PeerStats:(*pdpb.PeerStats)(0xc001a61770), Peer:response.MetaPeer{Peer:(*metapb.Peer)(0xc001a21600), RoleName:"Voter", IsLearner:false}}}, PendingPeers:[]response.MetaPeer{response.MetaPeer{Peer:(*metapb.Peer)(0xc001a21640), RoleName:"Voter", IsLearner:false}}, CPUUsage:0x0, WrittenBytes:0x0, ReadBytes:0x0, WrittenKeys:0x0, ReadKeys:0x0, ApproximateSize:1, ApproximateKeys:10, ApproximateKvSize:0, Buckets:[]string(nil), ReplicationStatus:(*response.ReplicationStatus)(nil)}}}
        	            	actual  : &response.RegionsInfo{Count:0, Regions:[]response.RegionInfo{}}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,122 +1,4 @@
        	            	 (*response.RegionsInfo)({
        	            	- Count: (int) 1,
        	            	- Regions: ([]response.RegionInfo) (len=1) {
        	            	-  (response.RegionInfo) {
        	            	-   ID: (uint64) 2,
        	            	-   StartKey: (string) (len=2) "61",
        	            	-   EndKey: (string) (len=2) "62",
        	            	-   RegionEpoch: (*metapb.RegionEpoch)({
        	            	-    ConfVer: (uint64) 1,
        	            	-    Version: (uint64) 1,
        	            	-    XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-    },
        	            	-    XXX_unrecognized: ([]uint8) <nil>,
        	            	-    XXX_sizecache: (int32) 0
        	            	-   }),
        	            	-   Peers: ([]response.MetaPeer) (len=2) {
        	            	-    (response.MetaPeer) {
        	            	-     Peer: (*metapb.Peer)({
        	            	-      Id: (uint64) 2,
        	            	-      StoreId: (uint64) 1,
        	            	-      Role: (metapb.PeerRole) 0,
        	            	-      IsWitness: (bool) false,
        	            	-      XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-      },
        	            	-      XXX_unrecognized: ([]uint8) <nil>,
        	            	-      XXX_sizecache: (int32) 0
        	            	-     }),
        	            	-     RoleName: (string) (len=5) "Voter",
        	            	-     IsLearner: (bool) false
        	            	-    },
        	            	-    (response.MetaPeer) {
        	            	-     Peer: (*metapb.Peer)({
        	            	-      Id: (uint64) 13,
        	            	-      StoreId: (uint64) 2,
        	            	-      Role: (metapb.PeerRole) 0,
        	            	-      IsWitness: (bool) false,
        	            	-      XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-      },
        	            	-      XXX_unrecognized: ([]uint8) <nil>,
        	            	-      XXX_sizecache: (int32) 0
        	            	-     }),
        	            	-     RoleName: (string) (len=5) "Voter",
        	            	-     IsLearner: (bool) false
        	            	-    }
        	            	-   },
        	            	-   Leader: (response.MetaPeer) {
        	            	-    Peer: (*metapb.Peer)({
        	            	-     Id: (uint64) 2,
        	            	-     StoreId: (uint64) 1,
        	            	-     Role: (metapb.PeerRole) 0,
        	            	-     IsWitness: (bool) false,
        	            	-     XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-     },
        	            	-     XXX_unrecognized: ([]uint8) <nil>,
        	            	-     XXX_sizecache: (int32) 0
        	            	-    }),
        	            	-    RoleName: (string) (len=5) "Voter",
        	            	-    IsLearner: (bool) false
        	            	-   },
        	            	-   DownPeers: ([]response.PDPeerStats) (len=1) {
        	            	-    (response.PDPeerStats) {
        	            	-     PeerStats: (*pdpb.PeerStats)({
        	            	-      Peer: (*metapb.Peer)({
        	            	-       Id: (uint64) 13,
        	            	-       StoreId: (uint64) 2,
        	            	-       Role: (metapb.PeerRole) 0,
        	            	-       IsWitness: (bool) false,
        	            	-       XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-       },
        	            	-       XXX_unrecognized: ([]uint8) <nil>,
        	            	-       XXX_sizecache: (int32) 0
        	            	-      }),
        	            	-      DownSeconds: (uint64) [360](https://github.com/tikv/pd/actions/runs/10349385167/job/28643632184?pr=8515#step:4:361)0,
        	            	-      XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-      },
        	            	-      XXX_unrecognized: ([]uint8) <nil>,
        	            	-      XXX_sizecache: (int32) 0
        	            	-     }),
        	            	-     Peer: (response.MetaPeer) {
        	            	-      Peer: (*metapb.Peer)({
        	            	-       Id: (uint64) 13,
        	            	-       StoreId: (uint64) 2,
        	            	-       Role: (metapb.PeerRole) 0,
        	            	-       IsWitness: (bool) false,
        	            	-       XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-       },
        	            	-       XXX_unrecognized: ([]uint8) <nil>,
        	            	-       XXX_sizecache: (int32) 0
        	            	-      }),
        	            	-      RoleName: (string) (len=5) "Voter",
        	            	-      IsLearner: (bool) false
        	            	-     }
        	            	-    }
        	            	-   },
        	            	-   PendingPeers: ([]response.MetaPeer) (len=1) {
        	            	-    (response.MetaPeer) {
        	            	-     Peer: (*metapb.Peer)({
        	            	-      Id: (uint64) 13,
        	            	-      StoreId: (uint64) 2,
        	            	-      Role: (metapb.PeerRole) 0,
        	            	-      IsWitness: (bool) false,
        	            	-      XXX_NoUnkeyedLiteral: (struct {}) {
        	            	-      },
        	            	-      XXX_unrecognized: ([]uint8) <nil>,
        	            	-      XXX_sizecache: (int32) 0
        	            	-     }),
        	            	-     RoleName: (string) (len=5) "Voter",
        	            	-     IsLearner: (bool) false
        	            	-    }
        	            	-   },
        	            	-   CPUUsage: (uint64) 0,
        	            	-   WrittenBytes: (uint64) 0,
        	            	-   ReadBytes: (uint64) 0,
        	            	-   WrittenKeys: (uint64) 0,
        	            	-   ReadKeys: (uint64) 0,
        	            	-   ApproximateSize: (int64) 1,
        	            	-   ApproximateKeys: (int64) 10,
        	            	-   ApproximateKvSize: (int64) 0,
        	            	-   Buckets: ([]string) <nil>,
        	            	-   ReplicationStatus: (*response.ReplicationStatus)(<nil>)
        	            	-  }
        	            	+ Count: (int) 0,
        	            	+ Regions: ([]response.RegionInfo) {
        	            	  }
        	Test:       	TestRegionTestSuite/TestRegionCheck

CI link

https://github.com/tikv/pd/actions/runs/10349385167/job/28643632184?pr=8515

Reason for failure (if possible)

Anything else

@okJiang okJiang added the type/ci The issue is related to CI. label Aug 13, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in #8591 Sep 4, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in 750d475 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/ci The issue is related to CI.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant