<div dir="ltr">Hi,<div><br></div><div>I am trying out 2.0 w/ just one local node, created a strongly consistent bucket type.  But keep getting below exception.  If I just use the default bucket type, everything works fine.  Here is the bucket type detail with consistency bit on.</div>
<div><br></div><div><div>young_vclock: 20</div><div>w: quorum</div><div>small_vclock: 50</div><div>rw: quorum</div><div>r: quorum</div><div>pw: 0</div><div>precommit: []</div><div>pr: 0</div><div>postcommit: []</div><div>
old_vclock: 86400</div><div>notfound_ok: true</div><div>n_val: 1</div><div>linkfun: {modfun,riak_kv_wm_link_walker,mapreduce_linkfun}</div><div>last_write_wins: false</div><div>dw: quorum</div><div>dvv_enabled: true</div>
<div>chash_keyfun: {riak_core_util,chash_std_keyfun}</div><div>big_vclock: 50</div><div>basic_quorum: false</div><div>allow_mult: true</div><div>consistent: true</div><div>active: true</div><div>claimant: '<a href="mailto:riak@0.0.0.0">riak@0.0.0.0</a>'</div>
</div><div><br></div><div>Here is the java code</div><div><br></div><div>







<p class="">List<String> <span class="">addresses</span> = <span class="">new</span> LinkedList<String>();</p>
<p class=""><span class=""><span class="">      </span><span class="">    </span></span><span class="">addresses</span><span class="">.add(</span>"172.16.0.254"<span class="">);</span></p><p class=""><span class="">







</span></p><p class=""><span class=""></span><span class=""></span><span class=""></span><span class="">RiakClient  riakClient</span> = RiakClient.newClient(<span class="">addresses</span>);</p></div><div>







<p class="">try<span class=""> {</span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span>Location <span class="">wildeGeniusQuote</span> = <span class="">new</span> Location(<span class="">new</span> Namespace(<span class="">"strongly_consistent2"</span>, <span class="">"sample"</span>), <span class="">emp</span>.getId());</p>

<p class=""><span class="">     </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span>BinaryValue <span class="">text</span> = BinaryValue.create(<span class="">objectMapper</span>.writeValueAsBytes(<span class="">sampleObj</span>));</p>

<p class=""><span class="">     </span><span class="">    </span><span class="">    </span>RiakObject <span class="">obj</span> = <span class="">new</span> RiakObject()</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span>        .setContentType(<span class="">"text/plain"</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span>        .setValue(<span class="">text</span>);</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span>StoreValue <span class="">store</span> = <span class="">new</span> StoreValue.Builder(<span class="">obj</span>).withLocation(<span class="">wildeGeniusQuote</span>)</p>

<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">ASIS</span>, <span class="">true</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">DW</span>, <span class="">new</span> Quorum(1))</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">IF_NONE_MATCH</span>, <span class="">true</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">IF_NOT_MODIFIED</span>, <span class="">true</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">PW</span>, <span class="">new</span> Quorum(1))</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">N_VAL</span>, 1)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">RETURN_BODY</span>, <span class="">true</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">RETURN_HEAD</span>, <span class="">true</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">SLOPPY_QUORUM</span>, <span class="">true</span>)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">TIMEOUT</span>, 1000)</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.withOption(Option.<span class="">W</span>, <span class="">new</span> Quorum(1))</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">    </span><span class="">    </span>.build();</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">riakClient</span>.execute(<span class="">store</span>);</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span></p>
<p class=""><span class="">     </span><span class="">    </span>} <span class="">catch</span> (Exception <span class="">e</span>) {</p>
<p class=""><span class="">     </span><span class="">    </span><span class="">    </span><span class="">e</span>.printStackTrace();</p>
<p class=""><span class=""><span class="">      </span><span class="">    </span><span class="">    </span></span>return<span class=""> </span>null<span class="">;</span></p>
<p class=""><span class="">     </span><span class="">    </span>}</p><p class="">Am I still missing something? Thanks.</p><p class=""><br></p><p class=""><br></p></div><div>







<p class=""><span class="">Caused by: </span><span class="">com.basho.riak.client.core.netty.RiakResponseException</span><span class="">: unavailable</span></p>
<p class=""><span class="">     </span>at com.basho.riak.client.core.netty.RiakResponseHandler.channelRead(<span class="">RiakResponseHandler.java:52</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(<span class="">DefaultChannelHandlerContext.java:340</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(<span class="">DefaultChannelHandlerContext.java:326</span>)</p>
<p class=""><span class="">     </span>at io.netty.handler.codec.ByteToMessageDecoder.channelRead(<span class="">ByteToMessageDecoder.java:155</span>)</p>
<p class=""><span class="">     </span>at io.netty.handler.codec.ByteToMessageCodec.channelRead(<span class="">ByteToMessageCodec.java:108</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(<span class="">DefaultChannelHandlerContext.java:340</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(<span class="">DefaultChannelHandlerContext.java:326</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.DefaultChannelPipeline.fireChannelRead(<span class="">DefaultChannelPipeline.java:785</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(<span class="">AbstractNioByteChannel.java:116</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.nio.NioEventLoop.processSelectedKey(<span class="">NioEventLoop.java:494</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(<span class="">NioEventLoop.java:461</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.nio.NioEventLoop.processSelectedKeys(<span class="">NioEventLoop.java:378</span>)</p>
<p class=""><span class="">     </span>at io.netty.channel.nio.NioEventLoop.run(<span class="">NioEventLoop.java:350</span>)</p>
<p class=""><span class="">     </span>at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(<span class="">SingleThreadEventExecutor.java:101</span>)</p>
<p class=""><span class="">     </span>... 1 more</p></div></div>