campeon23 / split-fetcher

The code is a concurrent file downloader in Go that splits a file into multiple parts, downloads them in parallel, and assembles the final file, with support for Etag validation to ensure file integrity.
MIT License
1 stars 0 forks source link

Error Handling for Pprof Error Channel #125

Closed campeon23 closed 1 year ago

campeon23 commented 1 year ago
  • Package Name: main
  • Function Name: Execute
  • Code Line: Listening to errors section

Description: Error handling for the pprof error channel seems to be fatal (log.Fatalf). It might halt the entire application. Consider handling errors gracefully without bringing down the entire application. Severity: Moderate

campeon23 commented 1 year ago

Resolution:

This issue has been addressed as per the provided recommendation. The log.Fatalf which had the potential to halt the entire application upon a pprof-related error has been updated. The error is now handled gracefully, allowing the application to continue its operations without abrupt termination. This approach ensures better resilience and reliability of our application even when encountering pprof errors.

Refer to Commit: "Changed the error handling mechanism for pprof-related errors. Instead of terminating the application on encountering pprof errors, we now handle them gracefully, ensuring the application remains up and continues to function."