adobe / experience-platform-streaming-connect

Experience platform Streaming Connectors for Data Ingress
Apache License 2.0
23 stars 20 forks source link

Pause Connector in case of 500 and unauthorised error #22

Closed vivetiwa closed 3 years ago

vivetiwa commented 3 years ago

Summary

  1. ConnectException thrown from publishAndLogIfRequired, since put method just groups the event based on flushTime and flushSize
  2. Added is500 and isUnauthorized in HttpUtil class
  3. After retry check if errorCode is 500 then throw HttpException else log and skip the message. since there could be chance that message failed from temporary 504-GatewayTimeout error in those case we just want to log and move ahead with processing
  4. HttpException default error - 500
  5. StringBuffer to StringBuilder since we don't need synchronized block inside method parameters
  6. ContentHandler don't fail on intermittent failure
  7. Bump up gradle release version

Related Issue

Changes

Please enter each change as a new bullet point

Relevant Documentation

Please enter the links of any docs updated to reflect this change

How Has This Been Tested?

Types of changes

Checklist