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

change topics stats backlogSize to uint64 #862

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wnyffenegger
Copy link
Contributor

@wnyffenegger wnyffenegger commented Oct 19, 2022

Motivation

  • Having thought about the previous PR, leaving the backlogSize as a signed int would likely lead to overflow conditions. Changing to uint64 to avoid those conditions.

Modifications

Change backlogSize to be a uint64.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@wnyffenegger wnyffenegger requested review from nodece, zymap and a team as code owners October 19, 2022 16:18
@github-actions github-actions bot added the doc-required This pr needs a document label Oct 19, 2022
@@ -183,7 +183,7 @@ type NamespacesData struct {
}

type TopicStats struct {
BacklogSize int64 `json:"backlogSize"`
BacklogSize uint64 `json:"backlogSize"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Pulsar defines the backlogSize as a long type, so I don't suggest you change this type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required This pr needs a document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants