Skip to content

ZOOKEEPER-3056: Fails to load database with missing snapshot file but with valid transaction log file.#1072

Closed
hanm wants to merge 1 commit intoapache:branch-3.5from
hanm:ZOOKEEPER-3056-3.5
Closed

ZOOKEEPER-3056: Fails to load database with missing snapshot file but with valid transaction log file.#1072
hanm wants to merge 1 commit intoapache:branch-3.5from
hanm:ZOOKEEPER-3056-3.5

Conversation

@hanm
Copy link
Copy Markdown
Contributor

@hanm hanm commented Sep 1, 2019

This is a port of patch #1069

… with valid transaction log file.

This is a port of patch apache#1069
Copy link
Copy Markdown
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli
Copy link
Copy Markdown
Contributor

retest maven build

@eolivelli
Copy link
Copy Markdown
Contributor

ant build failed due to a problem on the machine:
BUILD FAILED
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/build.xml:1802: 'findbugs.home' is not defined. Please pass -Dfindbugs.home= to Ant on the command-line.

retest ant build

@eolivelli
Copy link
Copy Markdown
Contributor

retest ant build

@eolivelli
Copy link
Copy Markdown
Contributor

@hanm @anmolnar @nkalmar @phunt

it seems that Maven build failed due to an upgrade of gcc on Jenkins slaves, we should address those problems in separate tasks

 [exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build-maven/zookeeper-client/zookeeper-client-c/src/zookeeper.c:2560:5: error: null argument where non-null required (argument 1) [-Werror=nonnull]
 [exec]      fprintf(LOGSTREAM,"Completion queue: ");
 [exec]      ^~~~~~~
 [exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build-maven/zookeeper-client/zookeeper-client-c/src/zookeeper.c:2562:9: error: null argument where non-null required (argument 1) [-Werror=nonnull]
 [exec]          fprintf(LOGSTREAM,"empty\n");
 [exec]          ^~~~~~~
 [exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build-maven/zookeeper-client/zookeeper-client-c/src/zookeeper.c:2568:9: error: null argument where non-null required (argument 1) [-Werror=nonnull]
 [exec]          fprintf(LOGSTREAM,"%d,",cptr->xid);
 [exec]          ^~~~~~~
 [exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build-maven/zookeeper-client/zookeeper-client-c/src/zookeeper.c:2571:5: error: null argument where non-null required (argument 1) [-Werror=nonnull]
 [exec]      fprintf(LOGSTREAM,"end\n");
 [exec]      ^~~~~~~
 [exec] Makefile:1032: recipe for target 'zookeeper.lo' failed
 [exec] cc1: all warnings being treated as errors
 [exec] make: *** [zookeeper.lo] Error 1

and Ant build fails due to the fact that "findbugs" is missing

@eolivelli
Copy link
Copy Markdown
Contributor

retest ant build
retest maven build

@hanm
Copy link
Copy Markdown
Contributor Author

hanm commented Sep 3, 2019

It should be ok to merge this as it's not the cause of the CI failures we observed here; plus the scope and impact of this patch is well understood.

Fixing of CI could be done on a separate track that's not blocking the release if we want to get the release out soon. I am ok either way. Your call @eolivelli.

asfgit pushed a commit that referenced this pull request Sep 3, 2019
… with valid transaction log file.

This is a port of patch #1069

Author: Michael Han <lhan@twitter.com>

Reviewers: Enrico Olivelli<eolivelli@apache.org>, Brian Nixon <nixon@fb.com>

Closes #1072 from hanm/ZOOKEEPER-3056-3.5
@eolivelli
Copy link
Copy Markdown
Contributor

Merged to branch-3.5.
We can fix CI stuff without hurry

@hanm
Copy link
Copy Markdown
Contributor Author

hanm commented Sep 4, 2019

merged as 77496b9

@hanm hanm closed this Sep 4, 2019
anmolnar pushed a commit to anmolnar/zookeeper that referenced this pull request May 21, 2024
ZOOKEEPER-3056: Fails to load database with missing snapshot file but with valid transaction log file.

This is a port of patch apache#1069

Author: Michael Han <lhan@twitter.com>

Reviewers: Enrico Olivelli<eolivelli@apache.org>, Brian Nixon <nixon@fb.com>

Closes apache#1072 from hanm/ZOOKEEPER-3056-3.5

Change-Id: If1e1cf7169c665ba9d84a631ee9bad4fb7c44960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants