LuciferYang opened a new issue, #2830: URL: https://github.com/apache/uniffle/issues/2830
### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [x] I have searched in the [issues](https://github.com/apache/uniffle/issues?q=is%3Aissue) and found no similar issues. ### Describe the bug JUnit Jupiter does not run test methods declared `private`, and it reports nothing about them. These 13 methods carry `@ParameterizedTest` but are private, so they never run: ``` DiskErrorToleranceTest.diskErrorTest HybridStorageFaultToleranceBase.fallbackTest ShuffleServerFaultToleranceTest.testReadFaultTolerance ShuffleServerGrpcTest.sendDataAndRequireBufferTest ShuffleServerGrpcTest.sendDataWithoutRegisterTest ShuffleServerWithHadoopTest.hadoopWriteReadTest ShuffleServerWithKerberizedHadoopTest.hadoopWriteReadTest ShuffleServerWithLocalOfLocalOrderTest.testWriteAndReadWithSpecifiedMapRange ShuffleServerWithLocalTest.localWriteReadTest ShuffleServerWithMemoryTest.memoryWriteReadTestProvider ShuffleServerWithMemoryTest.memoryWriteReadWithMultiReplicaTest ShuffleServerWithMemoryTest.memoryAndLocalFileReadWithFilterTest TopNShuffleDataSizeOfAppCalcTaskTest.testTopNShuffleDataSizeOfAppCalcTask ``` All 13 became private in #1540, which turned them into `@ParameterizedTest` for the gRPC and Netty modes. Neither mode of these tests has run since 0.9.0. With the methods made public, 17 of the 35 cases fail. Some failures are mistakes in the tests: - `ShuffleServerWithKerberizedHadoopTest` checks the gRPC server's memory in Netty mode, and the Netty server's in gRPC mode. - `ShuffleServerWithLocalTest` passes the `boolean` returned by `contains()` to `assertNotNull` and `assertNull`. - `TopNShuffleDataSizeOfAppCalcTaskTest` runs two servers that share the static TopN gauges, and reads them once after a 500 ms sleep. The refresh interval is 700 ms. - `ShuffleServerGrpcTest.sendDataWithoutRegisterTest` expects `INTERNAL_ERROR`. The server returns `NO_REGISTER` for an unregistered app. The cases below still fail when each class runs in its own JVM: | Test | Mode | Failure | |-|-|-| | `ShuffleServerGrpcTest.sendDataAndRequireBufferTest` | Netty | the last send gets `NO_REGISTER` instead of `SUCCESS` | | | gRPC | 10 failed buffer requests for the huge partition, the test expects 8 | | `ShuffleServerWithHadoopTest.hadoopWriteReadTest` | both | the blocks read back do not match the blocks written | | `DiskErrorToleranceTest.diskErrorTest` | Netty | `data1/<appId>` does not exist after the read | | | gRPC | `IndexOutOfBoundsException` in `createClient`, the server list is empty | | `HybridStorageHadoopFallbackTest.fallbackTest` | gRPC | `makeChaos` expects one DataNode, but the Netty case already stopped it | | `HybridStorageLocalFileFallbackTest.fallbackTest` | gRPC | reading from the HOT handler fails | | `ShuffleServerWithMemoryTest.memoryWriteReadTestProvider`, `memoryAndLocalFileReadWithFilterTest` | gRPC | the WARM handler can't get the shuffle index | | `ShuffleServerFaultToleranceTest.testReadFaultTolerance` | both | `NullPointerException` in `TestUtils.validateResult` | I plan to make all 13 methods public, fix the test mistakes above, and disable the cases in the table with a reference to this issue. Each disabled case then needs a follow-up to find out whether the test or the server is wrong. ### Affects Version(s) 0.9.0 to master ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! -- 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]
