-
Notifications
You must be signed in to change notification settings - Fork 7.3k
ZOOKEEPER-1580:QuorumPeer.setRunning is not used #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I only have a small suggestion to make it more simple.
| } | ||
|
|
||
| public void setRunning(boolean running) { | ||
| private void setRunning(boolean running) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see the point of using a private setter. Set the field directly instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also ambiguous about this change.could you give me some your insight?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late answer. It's not too much of an insight, rather - in general - I don't see the point of using a private setter without logic. In other words, is there any objection against setting the field directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maoling ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to @anmolnar i think we can remote the setter
| } | ||
|
|
||
| public void setRunning(boolean running) { | ||
| private void setRunning(boolean running) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to @anmolnar i think we can remote the setter
…data This bug is caused by an issue in our file padding logic. We calculate an incorrect position to add padding when appending to the transaction log, this often corrupts a transaction. When the log is read the CRC check will correctly fail. Author: Abraham Fine <afine@apache.org> Reviewers: phunt@apache.org Closes apache#436 from afine/ZOOKEEPER-2249 and squashes the following commits: f3bc06c [Abraham Fine] Improve testing and respond to phunt's comment 44ad057 [Abraham Fine] ZOOKEEPER-2249: CRC check failed when preAllocSize smaller than node data Change-Id: Id8ba9ad730760cb78672127b8c0e02db60b4e87d
This test relies on hooking into our logging system and creates a new appender using a PatternLayout object shared with the CONSOLE appender. PatternLayout has some synchronization issues (https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html) so we should create a new instance of it. Author: Abraham Fine <afine@apache.org> Reviewers: phunt@apache.org Closes apache#437 from afine/ZOOKEEPER-2961_master Change-Id: I1c81d37b94b12e0721a671deb2fc983773f88fd9
See [https://issues.apache.org/jira/browse/ZOOKEEPER-2964](url) for details. The bug affects versions newer than 3.5. According to Andor Molnar‘s [review](https://issues.apache.org/jira/browse/ZOOKEEPER-2964?focusedCommentId=16330018&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16330018) this patch can be applied to master and branch-3.5 branches. Thanks all for reviewing this issue. Author: Qihong Xu <qihongxu@bu.edu> Reviewers: phunt@apache.org Closes apache#449 from qihongxu/ZOOKEEPER-2964 Change-Id: Ie7de251afd5cca64f4735d75d9c95a886ff75328
- more details in [JIRA:ZOOKEEPER-1580](https://issues.apache.org/jira/browse/ZOOKEEPER-1580) - I forget fetching the upstream codes, make a mistake in the origin [PR-446] (#446) which includes some review history,so I close it and open a new one Author: maoling <maoling199210191@sina.com> Reviewers: Patrick Hunt <phunt@apache.org>, Andor Molnár <andor@cloudera.com>, Abraham Fine <afine@apache.org> Closes #452 from maoling/ZOOKEEPER-1580 and squashes the following commits: 29a5aba [maoling] remove the setter and return back to setting the running field directly 28de1e8 [maoling] ZOOKEEPER-1580:QuorumPeer.setRunning is not used
- more details in [JIRA:ZOOKEEPER-1580](https://issues.apache.org/jira/browse/ZOOKEEPER-1580) - I forget fetching the upstream codes, make a mistake in the origin [PR-446] (#446) which includes some review history,so I close it and open a new one Author: maoling <maoling199210191@sina.com> Reviewers: Patrick Hunt <phunt@apache.org>, Andor Molnár <andor@cloudera.com>, Abraham Fine <afine@apache.org> Closes #452 from maoling/ZOOKEEPER-1580 and squashes the following commits: 29a5aba [maoling] remove the setter and return back to setting the running field directly 28de1e8 [maoling] ZOOKEEPER-1580:QuorumPeer.setRunning is not used (cherry picked from commit d1b07d5) Signed-off-by: Abraham Fine <afine@apache.org>
- more details in [JIRA:ZOOKEEPER-1580](https://issues.apache.org/jira/browse/ZOOKEEPER-1580) - I forget fetching the upstream codes, make a mistake in the origin [PR-446] (apache#446) which includes some review history,so I close it and open a new one Author: maoling <maoling199210191@sina.com> Reviewers: Patrick Hunt <phunt@apache.org>, Andor Molnár <andor@cloudera.com>, Abraham Fine <afine@apache.org> Closes apache#452 from maoling/ZOOKEEPER-1580 and squashes the following commits: 29a5aba [maoling] remove the setter and return back to setting the running field directly 28de1e8 [maoling] ZOOKEEPER-1580:QuorumPeer.setRunning is not used
- more details in [JIRA:ZOOKEEPER-1580](https://issues.apache.org/jira/browse/ZOOKEEPER-1580) - I forget fetching the upstream codes, make a mistake in the origin [PR-446] (apache#446) which includes some review history,so I close it and open a new one Author: maoling <maoling199210191@sina.com> Reviewers: Patrick Hunt <phunt@apache.org>, Andor Molnár <andor@cloudera.com>, Abraham Fine <afine@apache.org> Closes apache#452 from maoling/ZOOKEEPER-1580 and squashes the following commits: 29a5aba [maoling] remove the setter and return back to setting the running field directly 28de1e8 [maoling] ZOOKEEPER-1580:QuorumPeer.setRunning is not used
more details in JIRA:ZOOKEEPER-1580