xingtanzjr commented on PR #7263:
URL: https://github.com/apache/iotdb/pull/7263#issuecomment-1240324909

   > > Can we see the log like `available replicas: ` before the exception 
occurs ?
   > 
   > there 3 available **datanode: java.lang.IndexOutOfBoundsException: Index: 
-2, Size: 3** (https://issues.apache.org/jira/browse/IOTDB-4358 exception 
info), I will find the detail log later. the reason of the issue is that the 
generated **sessionId is negative** , so 
[queryContext.getSession().getSessionId() % availableDataNodes.size()] is 
negative.
   
   Yes, your analysis is correct. But...it is wired that we got an index `-2` 
because the sessionId is always positive and the value of mod operation should 
be in [0, 2]. Why did we got a `-2` here ? Thus I want to know the detailed log 
here


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to