diff --git a/pkg/keyspace/keyspace.go b/pkg/keyspace/keyspace.go index 076304d040c..afb60d7bb3f 100644 --- a/pkg/keyspace/keyspace.go +++ b/pkg/keyspace/keyspace.go @@ -59,7 +59,8 @@ const ( // configured to run a global gc worker to calculate a global gc safe point. // If `gc_management_type` is `keyspace_level_gc` it means the current keyspace can calculate gc safe point by its own. GCManagementType = "gc_management_type" - KeyspaceLevelGC = "keyspace_level_gc" + // KeyspaceLevelGC is a type of gc_management_type used to indicate that this keyspace independently advances its own gc safe point. + KeyspaceLevelGC = "keyspace_level_gc" ) // Config is the interface for keyspace config. diff --git a/tests/integrations/client/http_client_test.go b/tests/integrations/client/http_client_test.go index 3414b2be248..e0e09dd6bc5 100644 --- a/tests/integrations/client/http_client_test.go +++ b/tests/integrations/client/http_client_test.go @@ -795,7 +795,7 @@ func (suite *httpClientTestSuite) TestUpdateKeyspaceGCManagementType() { GCManagementType: keyspace.KeyspaceLevelGC, }, } - err = client.UpdateKeyspaceGCManagementType(env.ctx, keyspaceName, &keyspaceSafePointVersionConfig) + err = client.UpdateKeyspaceGCManagementType(suite.ctx, keyspaceName, &keyspaceSafePointVersionConfig) re.Error(err) }