zhouyejoe commented on code in PR #35906:
URL: https://github.com/apache/spark/pull/35906#discussion_r928088228
##########
common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/RemoteBlockPushResolverSuite.java:
##########
@@ -1412,9 +1466,17 @@ void close() throws IOException {
}
void restore() throws IOException {
+ restore(-1);
+ }
+
+ void restore(long pos) throws IOException {
FileOutputStream fos = new FileOutputStream(file, true);
channel = fos.getChannel();
activeDos = new DataOutputStream(fos);
+ if (pos != -1) {
+ channel.position(pos);
+ }
Review Comment:
Reverted the changes
##########
common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/RemoteBlockPushResolverSuite.java:
##########
@@ -1388,16 +1442,16 @@ private static class TestMergeShuffleFile extends
MergeShuffleFile {
private File file;
private FileChannel channel;
- private TestMergeShuffleFile(File file) throws IOException {
- super(null, null);
+ private TestMergeShuffleFile(File file, boolean append) throws IOException
{
Review Comment:
Reverted changes.
--
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]