Bouncheck commented on PR #2048:
URL: 
https://github.com/apache/cassandra-java-driver/pull/2048#issuecomment-3107207560

   Here's also a handy script for reproducing this issue. I think I needed 
around 20 runs on version before the change to trigger the bug.
   ```bash
   #!/bin/bash
   
   mvn clean install -P fast
   
   echo "Running tests in a loop until failure detection..."
   counter=1
   
   while true; do
       echo "=============================================="
       echo "Attempt #$counter"
       echo "=============================================="
   
       # Run the test command and show output in real-time while also capturing 
it
       mvn -pl integration-tests integration-test 
-Dit.test='MicrometerMetricsIT, MicroProfileMetricsIT, DropwizardMetricsIT' | 
tee /tmp/maven_output.log
   
       # Capture the exit status of the tee command (which will be the exit 
status of the Maven command)
       maven_status=${PIPESTATUS[0]}
   
       # Check for explicit error containing the method name in the captured 
output
       if grep -q 
"\[ERROR\].*should_evict_down_node_metrics_when_timeout_fires" 
/tmp/maven_output.log; then
           echo ""
           echo "Found test failure on attempt #$counter"
           echo "Failing test output:"
           grep -A 5 -B 2 "should_evict_down_node_metrics_when_timeout_fires" 
/tmp/maven_output.log
           break
       fi
   
       # Also check standard Maven error exit code
       if [ $maven_status -ne 0 ]; then
           echo ""
           echo "Test command failed on attempt #$counter, but the specific 
error wasn't found."
           break
       fi
   
       echo ""
       echo "Test passed. Continuing..."
       ((counter++))
   
       # Optional: small delay between runs
       sleep 1
   done
   
   echo ""
   echo "Tests failed after $counter attempts."
   ```


-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to