jaykay12 commented on PR #4452:
URL: https://github.com/apache/solr/pull/4452#issuecomment-4606512576

   ## Test Evidences
   
   ### How I verified that these changes work via local solr run
   
   #### Started solr in local via these commands:
   ```bash
   ./gradlew dev 
   export SOLR_OPTS="-Dsolr.security.allow.urls.enabled=false"
   solr/packaging/build/dev/bin/solr start
   ```
   
   #### Ran this dummy shard, which creates slow query tasks & thus, I can 
verify the V1 & V2 APIs. Took help of Gemini to figure this testing out
   
   ```bash
   python3 -c "
   import socket, time
   server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
   server.bind(('127.0.0.1', 9999))
   server.listen(1)
   print('📡 Raw socket listening on port 9999... Run your Solr query now!')
   
   while True:
       conn, addr = server.accept()
       print('📥 Solr connected! Freezing connection for 10 seconds...')
       time.sleep(2)
       conn.close()
       print('🔌 Connection released.')
   "
   ```
   
   
   #### Actual Verification
   
   Fired these URLs to create solr query tasks:
   1. 
http://localhost:8983/solr/techproducts/select?q=*:*&shards=127.0.0.1:9999/solr/techproducts&canCancel=true&queryUUID=my-delayed-task-1
   2. 
http://localhost:8983/solr/techproducts/select?q=*:*&shards=127.0.0.1:9999/solr/techproducts&canCancel=true&queryUUID=my-delayed-task-2
   3. 
http://localhost:8983/solr/techproducts/select?q=*:*&shards=127.0.0.1:9999/solr/techproducts&canCancel=true&queryUUID=my-delayed-task-7
   
   
   ##### Verified the Endpoints:
   
   V1 List Task API with feature branch|V2 List Task API with feature branch
   ---|---
   
http://localhost:8983/solr/techproducts/tasks/list|http://localhost:8983/v2/collections/techproducts/tasks
   <img width="697" height="333" alt="Screenshot 2026-06-03 at 1 08 00 AM" 
src="https://github.com/user-attachments/assets/9f588b97-2862-40a4-a24f-dd527dde7aa6";
 />|<img width="948" height="415" alt="Screenshot 2026-06-03 at 1 08 10 AM" 
src="https://github.com/user-attachments/assets/8125c116-8a48-4089-baa6-aa3735190a55";
 />
   
   
   V1 Get Task Status API with feature branch|V2 Get Task Status API with 
feature branch
   ---|---
   
http://localhost:8983/solr/techproducts/tasks/list?taskUUID=my-delayed-task-2|http://localhost:8983/v2/collections/techproducts/tasks/my-delayed-task-2
   <img width="719" height="261" alt="Screenshot 2026-06-03 at 1 08 46 AM" 
src="https://github.com/user-attachments/assets/f65b43cc-4c2f-455b-8e2d-954de43bef72";
 />|<img width="669" height="240" alt="Screenshot 2026-06-03 at 1 09 51 AM" 
src="https://github.com/user-attachments/assets/2141b9ea-ea49-48d5-a50a-d7640aa4a635";
 />
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to