apurtell opened a new pull request, #2558:
URL: https://github.com/apache/phoenix/pull/2558

   `GlobalConnectionTenantTableIT` has three deterministically failing tests 
that all throw the same NPE ("Cannot invoke "java.lang.Long.longValue()" 
because "timestamp" is null at PhoenixConnection.java:643"). The root cause is 
in `PhoenixConnection.getTable(@Nullable String tenantId, String fullTableName, 
@Nullable Long timestamp)`. Its documented contract says a null timestamp means 
"use the cache, fall back to a server lookup on miss," and the cache hit path 
honors that, but the cache miss catch dispatches to `getTableNoCache(PName, 
String, long)` whose third parameter is a primitive long, so when `timestamp == 
null` the JVM auto-unboxes the null `Long` and throws a NPE.
   
   Co-authored-by: Claude Opus 4.8[1m] <[email protected]>


-- 
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