Skip to content

Commit

Permalink
changing transaction documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ Zhang committed Jun 30, 2024
1 parent 21d0160 commit 8dbfb5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5625,13 +5625,12 @@ public T hscan(@NonNull String key, @NonNull String cursor, @NonNull HScanOption
}

/**
* Blocks the current client until all the previous write commands are successfully transferred
* and acknowledged by at least <code>numreplicas</code> of replicas. If <code>timeout</code> is
* reached, the command returns even if the specified number of replicas were not yet reached.
* Returns the number of replicas that acknowledged the write commands sent by the current client
* before this command, both in the case where the specified number of replicas are reached, or
* when the timeout is reached.
*
* @param numreplicas The number of replicas to reach.
* @param timeout The timeout value specified in milliseconds. A value of <code>0</code> will
* block indefinitely.
* @param timeout The timeout value specified in milliseconds.
* @return Command Response - The number of replicas reached by all the writes performed in the
* context of the current connection.
*/
Expand Down
2 changes: 1 addition & 1 deletion java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -8083,7 +8083,7 @@ public void wait_timeout_check(BaseClient client) {
? RedisClient.CreateClient(commonClientConfig().build()).get()
: RedisClusterClient.CreateClient(commonClusterClientConfig().build()).get()) {

// ensure that commands doesn't time out even if timeout > request timeout
// ensure that commands do not time out, even if timeout > request timeout
assertEquals(OK, testClient.set(key, "value").get());
assertEquals((client instanceof RedisClient ? 0 : 1), testClient.wait(1L, 1000L).get());

Expand Down

0 comments on commit 8dbfb5a

Please sign in to comment.