You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2025/04/22 23:10:12 UTC

[PR] [MINOR] Fix flaky test testDeletePartitionsV2 [hudi]

yihua opened a new pull request, #13207:
URL: https://github.com/apache/hudi/pull/13207

   ### Change Logs
   
   This PR fixes the flaky test `testDeletePartitionsV2` as shown below.  The root cause is that the test expects 3 partitions to be written by `deletePartitionSetup` but the random record generator can generate records in fewer partitions due to how the partition path value is set.
   
   https://github.com/apache/hudi/actions/runs/14589199410/job/40920578922
   ```
   Error:  Tests run: 57, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 172.08 s <<< FAILURE! - in org.apache.hudi.TestHoodieSparkSqlWriter
   Error:  testDeletePartitionsV2{boolean}[2]  Time elapsed: 3.315 s  <<< FAILURE!
   org.opentest4j.AssertionFailedError: expected: <6> but was: <4>
   	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
   	at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
   	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
   	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
   	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:527)
   	at org.apache.hudi.TestHoodieSparkSqlWriter.validateDataAndPartitionStats(TestHoodieSparkSqlWriter.scala:902)
   	at org.apache.hudi.TestHoodieSparkSqlWriter.testDeletePartitionsV2(TestHoodieSparkSqlWriter.scala:859)
   ```
   
   ### Impact
   
   Fixes the test flakiness and makes CI stable
   
   ### Risk level
   
   none
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [MINOR] Fix flaky test testDeletePartitionsV2 [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13207:
URL: https://github.com/apache/hudi/pull/13207#issuecomment-2822775450

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=5079",
       "triggerID" : "1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=5079) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [MINOR] Fix flaky test testDeletePartitionsV2 [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13207:
URL: https://github.com/apache/hudi/pull/13207#issuecomment-2822674472

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=5079",
       "triggerID" : "1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=5079) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [MINOR] Fix flaky test testDeletePartitionsV2 [hudi]

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 merged PR #13207:
URL: https://github.com/apache/hudi/pull/13207


-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [MINOR] Fix flaky test testDeletePartitionsV2 [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13207:
URL: https://github.com/apache/hudi/pull/13207#issuecomment-2822673095

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1da10cd88a6d8efd2d6f533e6f21e6a56aa9798a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

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