Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

[$60] Investigate amunation #272

Closed
jmgasper opened this issue Dec 4, 2019 · 9 comments
Closed

[$60] Investigate amunation #272

jmgasper opened this issue Dec 4, 2019 · 9 comments

Comments

@jmgasper
Copy link
Collaborator

jmgasper commented Dec 4, 2019

@afrisalyp - I'm seeing this sometimes with prod. This is after our fixes we did. Any idea what that means or why it's happening? Seems to go along with the Failed to get topcoder member id error.

Screen Shot 2019-12-05 at 8 57 49 am

Screen Shot 2019-12-05 at 8 56 45 am

@jmgasper
Copy link
Collaborator Author

jmgasper commented Dec 4, 2019

Contest https://www.topcoder.com/challenges/30109214 has been created for this ticket.

This is an automated message for ghostar via Topcoder X

@jmgasper
Copy link
Collaborator Author

jmgasper commented Dec 4, 2019

Contest https://www.topcoder.com/challenges/30109214 has been updated - it has been assigned to afrisalyp.

This is an automated message for ghostar via Topcoder X

@afrisalyp
Copy link
Collaborator

@jmgasper
I'm pretty sure that the problem is related to the weird dynamodb behavior.
Since we have resolved only the Issue table, other problems might occur related to User and UserMapping table.

I'll add all() function to the scan() method. It will make sure we get consistent data.

@jmgasper
Copy link
Collaborator Author

jmgasper commented Dec 6, 2019

Ok - going to close this now and will retest with a prod deploy shortly.

@jmgasper
Copy link
Collaborator Author

@afrisalyp - Still seeing this in prod, only when unassigning. Is there something in the messaging generation that's not working?

@jmgasper
Copy link
Collaborator Author

Have a look at the messages here for an example: #273

@afrisalyp
Copy link
Collaborator

@jmgasper

We need to find out why the issue prints out amunation username. Somehow, querying to UserMapping always returns the amunation record.

Can you please provide me the DB record in the UserMapping table where topcoderUsername is amunation?

@afrisalyp
Copy link
Collaborator

@jmgasper
Thanks for the detailed record data.
The problem might be related to failed previous assignments.

I put null checking and throw an error if the process going to scan users with no criteria. This is why we always get the first record (amunation).

@jmgasper
Copy link
Collaborator Author

Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30109214

This is an automated message for ghostar via Topcoder X

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants