chaoyli commented on issue #3976: URL: https://github.com/apache/incubator-doris/issues/3976#issuecomment-651476013
Previously, the version_hash is used to differentiate the same load with the same version. In old days, FE will send version to BE before load finished. Assuming I have three BE(A, B, C) nodes. If A succeed, but B, C failed. The version belongs to load will failed. So The version will be reused by another load. Under this circumstance, version_hash is useful to differentiate the same version in Node A. Now, The load is encapsulated as a transaction. It will use **two-phase commit** to complete the transaction. The first phase is PREPARE, which only produce the data without version. If all nodes are finished PREPARED, the FE will think the load is finished. At this time, send a version will only once. So after this refactor, the version_hash is surplus and to be removed. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
