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

Two dungeons are sometimes acquired for the same claim #53

Open
4Ply opened this issue Jan 1, 2025 · 0 comments
Open

Two dungeons are sometimes acquired for the same claim #53

4Ply opened this issue Jan 1, 2025 · 0 comments
Assignees

Comments

@4Ply
Copy link
Member

4Ply commented Jan 1, 2025

It appears that the player's claim state is not reflecting in the poller, so even though the claim was set to acquired, the poller still executed on it again 5 seconds later:

15:47:58 0|worker  | 2025-01-01T15:47:58: info: Running background worker...
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Attempting to find an available dungeon for Rawrdardian (claimID: 677563ad5f8fb53720f03b0f)
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Acquired an available dungeon for Rawrdardian: {
15:47:58 0|worker  |   _id: new ObjectId('6773841a746304edc2e30990'),
15:47:58 0|worker  |   name: 'd102',
15:47:58 0|worker  |   ip: '10.151.0.135',
15:47:58 0|worker  |   activePlayers: 0,
15:47:58 0|worker  |   state: 'reserved',
15:47:58 0|worker  |   requiresRebuild: false,
15:47:58 0|worker  |   healthySince: 2025-01-01T12:17:10.439Z,
15:47:58 0|worker  |   unhealthySince: null,
15:47:58 0|worker  |   createdAt: 2024-12-31T05:41:46.831Z,
15:47:58 0|worker  |   updatedAt: 2025-01-01T15:47:58.454Z,
15:47:58 0|worker  |   __v: 0,
15:47:58 0|worker  |   inUseDate: 2024-12-31T05:42:01.828Z,
15:47:58 0|worker  |   claimId: '677563ad5f8fb53720f03b0f',
15:47:58 0|worker  |   reservedBy: 'Rawrdardian',
15:47:58 0|worker  |   reservedDate: 2025-01-01T15:47:58.453Z
15:47:58 0|worker  | }
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.151.0.135:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Setting Rawrdardian's state as in-transit-to-dungeon
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Setting Claim 677563ad5f8fb53720f03b0f's state as acquired
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.150.0.11:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.151.0.132:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.151.0.135:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: error: Failed to connect to 10.151.0.137:25565 (error encountered during socket connection)
15:47:58 0|worker  | 2025-01-01T15:47:58: warn: Could not reach dungeon instance d099 at 10.151.0.137. Marking it as unhealthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.151.0.136:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.151.0.134:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Connected to 10.151.0.131:25565, considering this dungeon as healthy
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Acquiring open-door lock for lobby (expires: Wed Jan 01 2025 15:48:01 GMT+0000 (Coordinated Universal Time))
15:47:58 0|worker  | 2025-01-01T15:47:58: info: Lock is present for close-door/lobby, skipping


15:48:04 0|worker  | 2025-01-01T15:48:04: info: Running background worker...
15:48:04 0|worker  | 2025-01-01T15:48:04: info: Attempting to find an available dungeon for Rawrdardian (claimID: 677563ad5f8fb53720f03b0f)
15:48:04 0|worker  | 2025-01-01T15:48:04: info: Acquired an available dungeon for Rawrdardian: {
15:48:04 0|worker  |   _id: new ObjectId('677458c4caa3bd39818bfdff'),
15:48:04 0|worker  |   name: 'd097',
15:48:04 0|worker  |   ip: '10.151.0.134',
15:48:04 0|worker  |   activePlayers: 0,
15:48:04 0|worker  |   state: 'reserved',
15:48:04 0|worker  |   requiresRebuild: false,
15:48:04 0|worker  |   healthySince: 2025-01-01T13:20:53.459Z,
15:48:04 0|worker  |   unhealthySince: null,
15:48:04 0|worker  |   createdAt: 2024-12-31T20:49:08.242Z,
15:48:04 0|worker  |   updatedAt: 2025-01-01T15:48:04.291Z,
15:48:04 0|worker  |   __v: 0,
15:48:04 0|worker  |   inUseDate: 2024-12-31T20:49:23.221Z,
15:48:04 0|worker  |   claimId: '677563ad5f8fb53720f03b0f',
15:48:04 0|worker  |   reservedBy: 'Rawrdardian',
15:48:04 0|worker  |   reservedDate: 2025-01-01T15:48:04.291Z
15:48:04 0|worker  | }
15:48:04 0|worker  | 2025-01-01T15:48:04: info: Connected to 10.151.0.134:25565, considering this dungeon as healthy
15:48:04 0|worker  | 2025-01-01T15:48:04: info: Setting Rawrdardian's state as in-transit-to-dungeon
15:48:04 0|worker  | 2025-01-01T15:48:04: info: Setting Claim 677563ad5f8fb53720f03b0f's state as acquired
@4Ply 4Ply added this to Decked Out 2 Jan 1, 2025
@4Ply 4Ply self-assigned this Jan 1, 2025
@4Ply 4Ply changed the title Two dungeons are sometimes aquired for the same claim Two dungeons are sometimes acquired for the same claim Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant