Closed shehzadsidi closed 5 years ago
Request Log Object:
Fixed and handed over to Sukhe for his next PR (branch 551, PR #604 ) since it involved just commenting out 1 line of code.
There are 2 lingering concerns:
Even tho sending the data over to DoT resulted in the data being created (as proven by a subsequent GetFromStore), DoT returns a "500".
Concern #1: Since there is no rollback, I thought we all agreed that if a ChannelSet is successfully created, even a failed attempt to add channels or add data will NOT result in -1. So, for QA that only can verify the "1" result, if the data (as in this case) results in DoT returning a 500 while still adding the data, QA will assume the data will be there. IT IS A FALSE POSITIVE should the 500 one day result in the data NOT being added. But if you think about it, our philosophy of "no rollback" locks us into this path.
There is no way for QA to granularize an error to a channel or data failure (only a channel set failure).
Concern #2: Why does DoT return a 500 (Internal Server Error) on data but data is successfully added?
So I will close this card but express these two concerns in a meeting where we can dissect it further.
UPDATE: The errors need to be thrown by the Valve back with appropriate error codes. The log must reflect accurate error tracing so the root cause can always be uncovered. The strategy for repeating AddToStore is not viable as best as I can tell (it will result in a -409 error since a ChannelSet must be present & mappings happen each & every time an AddToStore occurs). The suggestion to just repeat Steps 2 & 3 (Add Channel & Add Data) as required is not a workable or desirable solution. SLB is working their error on their side and I have provided the JSON format for the request bodies in the SC general channel and email.
Further discussion is required, and I will reopen this card but mark it as "blocked" until SLB fixes the error on their side.
UPDATE: The only acceptable solution to this issue is to provide rollback.
The problems are:
I will open a new card that focuses on communicating the correct solution and providing more details of what it will take to provide rollback.
AddToStore for both Time and Depth errors in "Internal Server" response. However, the object is actually being created. The issue is with response: