Listing backups fails if more than 255 backups are available #12597
Labels
area/ux
Marks an issue as related to improving the user experience
component/backup
kind/bug
Categorizes an issue or PR as a bug
severity/mid
Marks a bug as having a noticeable impact but with a known workaround
version:8.3.0-alpha1
Marks an issue as being completely or in parts released in 8.3.0-alpha1
version:8.3.0-alpha2
Marks an issue as being completely or in parts released in 8.3.0-alpha2
version:8.3.0
Marks an issue as being completely or in parts released in 8.3.0
Describe the bug
Trying to list all available backups will always fail without a useful error message.
The gateway distributes a list request to all brokers which then list all of their backups and try to respond with a
BackupListResponse
:https://github.com/camunda/zeebe/blob/4854b6606a803926ed9cadabfc2edb4aede18cb4/protocol/src/main/resources/cluster-management-protocol.xml#L64-L76
The
groupSizeEncoding
is defined by us:https://github.com/camunda/zeebe/blob/c861aac736376e1cc20aa558979c6d9c289b4a1f/protocol/src/main/resources/common-types.xml#L16-L19
It uses a
unit8
to represent the number of entries. When trying to write aBackupListResponse
with more than 255 entries, the encoder rejects it:To Reproduce
Take 256 backups, then query all backups via
GET actuator/backups
.Expected behavior
uint16
, thus supporting 65535 backups)Log/Stacktrace
Full Stacktrace
Environment:
The text was updated successfully, but these errors were encountered: