Skip to content

RangeScan on the server should probably stop at internal keys #673

@mauricebarnum

Description

@mauricebarnum

Internal keys can't be deserialized, which results in a range scan request failing if the client doesn't exclude them. For example, I did a range scan using the empty string for both the start and end of the range:

Error: TonicStatus(Status { code: Unknown, message: "failed to Deserialize storage entry: proto: wrong wireType = 1 for field ModificationsCount", metadata: MetadataMap { headers: {"content-type": "application/grpc"} }, source: None })

Rather than replicate logic such as below in all clients, the server should either filter the keys or support deserializing them.

	if Config.keyMax == "" {
		// By default, do not list internal keys
		Config.keyMax = "__oxia/"
	}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions