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

localPosts/status_count counter sometimes goes backwards #24229

Open
markrprior opened this issue Mar 23, 2023 · 1 comment
Open

localPosts/status_count counter sometimes goes backwards #24229

markrprior opened this issue Mar 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@markrprior
Copy link

Steps to reproduce the problem

It's an intermittent problem and I've seen nothing obvious that triggers it but I have noticed that on occasion if I poll a site the nodeinfo localPosts and the (I assume linked) mastodon instance v1 status_count field have recorded a smaller number. The size of the delta is variable, it can be just a couple but then an example from earlier today
airpollution.science: NEGATIVE: new=1294 old=2921 delta=-1627
My script polls sites once a day.

Expected behaviour

I expected the number to only increase (unless the counter wraps)

Actual behaviour

Sometimes the number gets smaller

Detailed description

No response

Specifications

It seems to happen on all versions of mastodon.

@markrprior markrprior added the bug Something isn't working label Mar 23, 2023
@markrprior
Copy link
Author

While I can appreciate that this might be caused by people deleting a post the example I posted seemed extreme for that situation. Depending on how it is implemented it could multiple count edits as (+1 post, -1 delete, +1 post) which would also seem wrong to me. I think that ideally the only thing that should increment the counter is creating a post. Deleting or modifying it later shouldn't change the counter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant