Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-22086 Thin client: initialize observableTimestamp in handshake #3679

Merged
merged 16 commits into from Apr 30, 2024

Conversation

ptupitsyn
Copy link
Contributor

@ptupitsyn ptupitsyn commented Apr 29, 2024

Before this fix we propagated observableTimestamp to the client with every response, but not on handshake. As a result, the very first operation from the client has observableTimestamp = 0, which can lead to causality issues.

Fix Java, .NET, C++ clients.

@ptupitsyn ptupitsyn self-assigned this Apr 29, 2024
@ptupitsyn ptupitsyn changed the title IGNITE-22086 Thin client: propagate observableTimestamp in handshake IGNITE-22086 Thin client: initialize observableTimestamp in handshake Apr 29, 2024
@ptupitsyn ptupitsyn requested a review from isapego April 29, 2024 11:00
@@ -261,6 +261,7 @@ class node_connection : public std::enable_shared_from_this<node_connection> {

/** Configuration. */
const ignite_client_configuration &m_configuration;
void on_observable_timestamp_changed(int64_t observable_timestamp) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be moved upper, to methods section, and given some simple description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@ptupitsyn ptupitsyn requested a review from isapego April 30, 2024 08:54
@ptupitsyn ptupitsyn merged commit 66172ff into apache:main Apr 30, 2024
1 check passed
@ptupitsyn ptupitsyn deleted the ignite-22086 branch April 30, 2024 08:59
AMashenkov pushed a commit that referenced this pull request May 14, 2024
…#3679)

Before this fix we propagated `observableTimestamp` to the client with every response, but not on handshake. As a result, the very first operation from the client has `observableTimestamp = 0`, which can lead to causality issues.

Fix Java, .NET, C++ clients.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants