Skip to content

Bug: Bot Does Not Restock AH Back to MaxItems Until a Server Restart or Config Reload  #126

Description

@LannyE

Current Behaviour

With the current commit it appears that the Bot will not restock items as auctions expire and gradually over time the auction house will be at 0 total items without a server restart or config reload. Once you restart/reload the server the bot restocks the auction house back to between the minitems and maxitems database settings.

I decided to make this its own issue as this was discussed and confirmed in another issue #122 that wasn't exactly about this issue.

As show in the linked issue this is the errors I received when the bot was trying to restock items.
image

My auction house maxitems is rather large sitting at 13000 items but I have tested it at 1000 and had the same results. I have noticed this issue for about three months. It used to work fine.

Expected Behaviour

When auctions expire at the next check or "tick" the bot should add more auctions to get the auction house total auctions back up to between the minitems and maxitems database settings.

Steps to reproduce the problem

  1. Set your minitems and maxitems in the database
  2. Start Azerothcore server
  3. Watch as auction house auctions are listed, and total auctions reach the maxitems setting.
  4. Do not restart server and wait for auctions to expire. Over time the auction house total auctions will continue to decrease without a restock.

Extra Notes

I tested an old commit 139bea2 on one of my test instances and the auction house does restock and keeps the total number of auctions between the minitems and maxitems database settings as expected. I chose that commit because I started noticing this issue way back in September.

AC rev. hash/commit

AzerothCore rev. df03a80ee75b+ 2024-12-06 22:49:01 -0700 (master branch) (Win64, RelWithDebInfo, Static)

Operating system

Windows

Custom changes or Modules

mod-ah-bot
mod-gain-honor-guard
mod-individual-xp
mod-pvp-titles
mod-solo-lfg
mod-transmog
mod-weekend-xp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions