[GCS] Support gcs client subscribe idempotent#9153
[GCS] Support gcs client subscribe idempotent#9153ffbin wants to merge 12 commits intoray-project:masterfrom
Conversation
|
Can one of the admins verify this patch? |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
2483dfd to
c8735ce
Compare
|
Test PASSed. |
There was a problem hiding this comment.
Pls add some comment to explain why need two different filters.
There was a problem hiding this comment.
It is better to use [&node_id]?
There was a problem hiding this comment.
const auto &object_list = item.second
There was a problem hiding this comment.
return rhs.second > lhs.second ? true : (rhs.second == lhs.second ? rhs.first.Hex() > lhs.first.Hex() : false);
c8735ce to
3a1e5af
Compare
|
Test PASSed. |
|
Test PASSed. |
There was a problem hiding this comment.
Does it mean the caller should always hold locks whenever it uses gcs client?
There was a problem hiding this comment.
Does it mean the caller should always hold locks whenever it uses gcs client?
GCS client and the main thread use the same event loop, so they are actually called by a single thread.
Except for node table and object location table, the other tables are sorted by timestamp. Node table and object location table are special in that they contain several records, so they are sorted by timestamp in GCS. The processing logic of this part is relatively complex. In order to merge this PR faster, I plan to split PR into two. |
c01c5a4 to
9b95cd8
Compare
|
Test FAILed. |
Why are these changes needed?
Design document:
https://docs.google.com/document/d/1Cuqxlw53abEZPVYVF-pUWpbnwrFEgVTel_sQGwt8DmU/edit#heading=h.s3ogmk8m7308
This PR implements GCS client subscribe idempotent.
Node table and object location table are special in that they contain several records, so they are sorted by timestamp in GCS. The processing logic of this part is relatively complex. In order to merge this PR faster, I plan to split PR into two.
The first pr: #9424
Related issue number
Checks
scripts/format.shto lint the changes in this PR.