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

Aerospike under k8s using tcp proxy (null refrence) #59

Open
thyn opened this issue Feb 11, 2021 · 1 comment
Open

Aerospike under k8s using tcp proxy (null refrence) #59

thyn opened this issue Feb 11, 2021 · 1 comment

Comments

@thyn
Copy link

thyn commented Feb 11, 2021

We are having issue when using aerospike through tcp proxy.

If we disable use alternate-access-address we are having null reference in client.
The behavior is right. It can't find any working address. But, May be exception should be more informative?

Type: LogMessage
ExceptionDetails:
[0].Type: NullReferenceException
[0].Message: Object reference not set to an instance of an object.
[0].Source: AerospikeClient
[0].Method: FailOnApplicationError
[0].StackTrace:    at Aerospike.Client.AsyncCommand.FailOnApplicationError(AerospikeException ae)
   at Aerospike.Client.AsyncCommand.ExecuteCommand()
   at Aerospike.Client.AsyncCommand.ExecuteCore()
   at Aerospike.Client.AsyncCommand.ExecuteInline(SocketAsyncEventArgs e)
   at Aerospike.Client.AsyncCommandBlockingQueue.ScheduleCommand(AsyncCommand command)
   at Aerospike.Client.AsyncCluster.ScheduleCommandExecution(AsyncCommand command)
   at Aerospike.Client.AsyncCommand.Execute()
   at Aerospike.Client.AsyncClient.Put(WritePolicy policy, WriteListener listener, Key key, Bin[] bins)
  ...
[0].Data: 
Exceptions:
Exception: System.NullReferenceException
Error: Object reference not set to an instance of an object.
Source: AerospikeClient
Method: FailOnApplicationError
Data:
Stack:
   at Aerospike.Client.AsyncCommand.FailOnApplicationError(AerospikeException ae)
   at Aerospike.Client.AsyncCommand.ExecuteCommand()
   at Aerospike.Client.AsyncCommand.ExecuteCore()
   at Aerospike.Client.AsyncCommand.ExecuteInline(SocketAsyncEventArgs e)
   at Aerospike.Client.AsyncCommandBlockingQueue.ScheduleCommand(AsyncCommand command)
   at Aerospike.Client.AsyncCluster.ScheduleCommandExecution(AsyncCommand command)
   at Aerospike.Client.AsyncCommand.Execute()
   at Aerospike.Client.AsyncClient.Put(WritePolicy policy, WriteListener listener, Key key, Bin[] bins)
...)```


@BrianNichols
Copy link
Member

I can generate a more informative error message if you tell me the exact line where the null reference occurred.

Is this it?

AsyncConnection.cs line 40:

	socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants