jinggou opened a new pull request, #14:
URL: https://github.com/apache/phoenix-adapters/pull/14

   …rting REST server
   
   Before starting the REST server in integration tests, ensure Phoenix system 
tables
    are fully initialized by calling TestUtils.awaitPhoenixReady().
   
   This eliminates the race condition that caused intermittent test failures 
with:
     org.apache.phoenix.exception.PhoenixIOException: SYSTEM.CATALOG
     Caused by: org.apache.hadoop.hbase.TableNotFoundException: SYSTEM.CATALOG
   
   The fix adds TestUtils.awaitPhoenixReady(url) calls to all 82 integration 
test classes, either directly in their @BeforeClass methods or through 
inheritance from base classes like BaseSegmentScanIT, KclTestBase, 
UpdateItemBaseTests, and SegmentScanIT.
   
   The awaitPhoenixReady() method polls for up to 30 seconds (vs RESTServer's 5 
seconds) for Phoenix to become ready, providing sufficient time for 
SYSTEM.CATALOG initialization even on slow CI workers.
   
   Changes:
   - Added TestUtils.awaitPhoenixReady() calls to 58 integration test classes
   - Fixed DeleteTableIT to construct Phoenix JDBC URL before REST server 
initialization
   - 24 additional test classes inherit the fix through base class inheritance
   - Total coverage: 82/82 integration test classes


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