23

When you test your backend code thoroughly before pushing to production, but a fatal exception with the much larger production userbase causes one of your vital threads to die with a NullPointerException.

Comments
  • 1
    hey it happens - hopefully you have good rollback policies so you can add test coverage, bug fix and redeploy.
  • 1
    Happens way too often. Probably it's time for a production environment clone to do the integration testing on.
  • 0
    @binhex I created a new branch with git from the latest commit I knew was stable, then pushed to origin and commanded the backend to update from that branch while I fixed it.
  • 0
    @youprat unfortunately I can't clone the production environment since it relies on OAuth2 user consent.
  • 0
    @Frederikam Yeah that's a little tricky when you're delegating authentication to something like OAuth2.. You could generate fake user tokens and mock your OAuth calls to verify the fake user tokens.
  • 0
    That image lol
Add Comment