pr_17843.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- services/project-history/app/js/ErrorRecorder.js
  2. +++ services/project-history/app/js/ErrorRecorder.js
  3. @@ -210,6 +210,14 @@ export function getFailures(callback) {
  4. 'Error: bad response from filestore: 404': 'filestore-404',
  5. 'Error: bad response from filestore: 500': 'filestore-500',
  6. 'NotFoundError: got a 404 from web api': 'web-api-404',
  7. + 'OError: history store a non-success status code: 413':
  8. + 'history-store-413',
  9. + 'OError: history store a non-success status code: 422':
  10. + 'history-store-422',
  11. + 'OError: history store a non-success status code: 500':
  12. + 'history-store-500',
  13. + 'OError: history store a non-success status code: 503':
  14. + 'history-store-503',
  15. 'Error: history store a non-success status code: 413':
  16. 'history-store-413',
  17. 'Error: history store a non-success status code: 422':
  18. --- services/project-history/app/js/RetryManager.js
  19. +++ services/project-history/app/js/RetryManager.js
  20. @@ -20,6 +20,7 @@ const TEMPORARY_FAILURES = [
  21. const HARD_FAILURES = [
  22. 'Error: history store a non-success status code: 422',
  23. + 'OError: history store a non-success status code: 422',
  24. 'OpsOutOfOrderError: project structure version out of order',
  25. 'OpsOutOfOrderError: project structure version out of order on incoming updates',
  26. 'OpsOutOfOrderError: doc version out of order',
  27. --- services/project-history/scripts/clear_deleted_history.js
  28. +++ services/project-history/scripts/clear_deleted_history.js
  29. @@ -143,7 +143,7 @@ function checkAndClear(project, callback) {
  30. // find all the broken projects from the failure records
  31. async function main() {
  32. const results = await db.projectHistoryFailures
  33. - .find({ error: 'Error: history store a non-success status code: 422' })
  34. + .find({ error: /history store a non-success status code: 422/ })
  35. .toArray()
  36. console.log('number of queues without history store 442 =', results.length)
  37. --- services/project-history/scripts/force_resync.js
  38. +++ services/project-history/scripts/force_resync.js
  39. @@ -198,6 +198,7 @@ function checkAndClear(project, callback) {
  40. // find all the broken projects from the failure records
  41. const errorsToResync = [
  42. 'Error: history store a non-success status code: 422',
  43. + 'OError: history store a non-success status code: 422',
  44. 'OpsOutOfOrderError: project structure version out of order',
  45. ]