zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eolive...@apache.org
Subject [zookeeper] branch master updated: ZOOKEEPER-3710: [trivial bug] fix compile error in PurgeTxnTest introduced by ZOOKEEPER-3231
Date Fri, 31 Jan 2020 11:01:29 GMT
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 1114376  ZOOKEEPER-3710: [trivial bug] fix compile error in PurgeTxnTest introduced
by ZOOKEEPER-3231
1114376 is described below

commit 111437694b67398bd83a5459b451ff78440579df
Author: maoling <maoling199210191@sina.com>
AuthorDate: Fri Jan 31 12:01:23 2020 +0100

    ZOOKEEPER-3710: [trivial bug] fix compile error in PurgeTxnTest introduced by ZOOKEEPER-3231
    
    - Link to [PR-1079](https://github.com/apache/zookeeper/pull/1079#issuecomment-580275886)
    - more details in the [ZOOKEEPER-3710](https://issues.apache.org/jira/browse/ZOOKEEPER-3710)
    
    Author: maoling <maoling199210191@sina.com>
    
    Reviewers: Enrico Olivelli <eolivelli@apache.org>, Norbert Kalmar <nkalmar@apache.org>
    
    Closes #1239 from maoling/ZOOKEEPER-3710
---
 .../src/test/java/org/apache/zookeeper/server/PurgeTxnTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zookeeper-server/src/test/java/org/apache/zookeeper/server/PurgeTxnTest.java
b/zookeeper-server/src/test/java/org/apache/zookeeper/server/PurgeTxnTest.java
index 29c1027..84d9076 100644
--- a/zookeeper-server/src/test/java/org/apache/zookeeper/server/PurgeTxnTest.java
+++ b/zookeeper-server/src/test/java/org/apache/zookeeper/server/PurgeTxnTest.java
@@ -597,7 +597,7 @@ public class PurgeTxnTest extends ZKTestCase {
 
     private void makeValidSnapshot(File snapFile) throws IOException {
         SnapStream.setStreamMode(SnapStream.StreamMode.CHECKED);
-        CheckedOutputStream os = SnapStream.getOutputStream(snapFile);
+        CheckedOutputStream os = SnapStream.getOutputStream(snapFile, true);
         OutputArchive oa = BinaryOutputArchive.getArchive(os);
         FileHeader header = new FileHeader(FileSnap.SNAP_MAGIC, 2, 1);
         header.serialize(oa, "fileheader");
@@ -610,7 +610,7 @@ public class PurgeTxnTest extends ZKTestCase {
 
     private void makeInvalidSnapshot(File snapFile) throws IOException {
         SnapStream.setStreamMode(SnapStream.StreamMode.CHECKED);
-        OutputStream os = SnapStream.getOutputStream(snapFile);
+        OutputStream os = SnapStream.getOutputStream(snapFile, true);
         os.write(1);
         os.flush();
         os.close();


Mime
View raw message