New transaction does not pick random stub when connected to more then one alpha node #112
Labels
kind/question
something requiring a response
status/more-info-needed
The issue has been sent back to reporter asking for clarification
Version 2.0.1
E.g.
Alpha-1 => IP 123.1.1.0
Alpha-2 => IP 123.1.1.1
Alpha-3 => IP 123.1.1.2
if you do something like:
val channel1: ManagedChannel = ManagedChannelBuilder.forAddress("123.1.1.0", port).usePlaintext(true).build
val stub1 = DgraphGrpc.newStub(channel1)
val channel2: ManagedChannel = ManagedChannelBuilder.forAddress("123.1.1.1", port).usePlaintext(true).build
val stub2 = DgraphGrpc.newStub(channel2)
val channel3: ManagedChannel = ManagedChannelBuilder.forAddress("123.1.1.2", port).usePlaintext(true).build
val stub3 = DgraphGrpc.newStub(channel3)
// and then create client
val stubs = Seq(stub1, stub2, stub3)
val client = new DgraphAsyncClient(stubs: _*)
// when you call newTrasaction it always goes only to one alpha node (e.g. Alpha-1)
client.newTransaction()
Expected: to randomly pick nodes (alpha-1, alpha-2, alpha-3)
The text was updated successfully, but these errors were encountered: