You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation, the YugabyteDBChangeRecordEmitter calls the getOffset() function to pass the YugabyteDBOffsetContext - the getOffset() function simply returns the object. Now consider the following situation:
getOffset() returns the YugabyteDBOffsetContext i.e. offsetContext
A source record is formed by using the map from the above object i.e. offsetContext.getValueFromInternalMap(tabletId) - note that this method name is for reference only.
The question is, can there be a scenario where some other thread or method can modify the value of the internal map between the step 1 and step 2 possibly indicating some race condition?
The text was updated successfully, but these errors were encountered:
In the current implementation, the
YugabyteDBChangeRecordEmitter
calls thegetOffset()
function to pass theYugabyteDBOffsetContext
- thegetOffset()
function simply returns the object. Now consider the following situation:getOffset()
returns theYugabyteDBOffsetContext
i.e. offsetContextoffsetContext.getValueFromInternalMap(tabletId)
- note that this method name is for reference only.The question is, can there be a scenario where some other thread or method can modify the value of the internal map between the step 1 and step 2 possibly indicating some race condition?
The text was updated successfully, but these errors were encountered: