Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Success update future after fetch future error [JIRA: CLIENTS-913] #632

Description

@Tolsi
  • [ 2.0.6 ] Riak Java Client version
  • [ 1.8 ] Java version
  • [ 2.1.3 ] Riak version
  • [ Mac OS X 10.11 ] Operating System / Distribution & Version
  • [ UpdateValue.executeAsync ] What methods were being executed during the error
  • What you expected to have happen: when I stop Riak, then I should have failed of all my new operation futures, but when I make UpdateValue, then I have success future.
  • Sample data, if applicable:
    val update = new UpdateValue.Builder(location).withUpdate(...).build()
    client.executeAsync(update).addListener(
      new RiakFutureListener[UpdateValue.Response, Location] {
        override def handle(riakFuture: RiakFuture[UpdateValue.Response, Location]): Unit = {
          assert (riakFuture.isSuccess)
        }
      })

This assert is always true in my case, because exception writed at UpdateValue:216 (f.cause().getCause(), in my case NoNodesAvailableException#getCause()) is null and UpdateValueFuture#isSuccess checks exception field (UpdateValue:535)

Activity

  1. changed the title [-]Success update future after fetch future error[/-] [+]Success update future after fetch future error [JIRA: CLIENTS-913][/+] on Jul 11, 2016
  2. Tolsi commented on Jul 15, 2016

    @Tolsi
    ContributorAuthor

    Thank you for your work, @alexmoore ! I will be wait for the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions