Repository navigation
Expand file tree
/
Copy pathfindbugsExcludeFile.xml
More file actions
147 lines (126 loc) · 4.19 KB
/
Copy pathfindbugsExcludeFile.xml
File metadata and controls
147 lines (126 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<FindBugsFilter>
<!-- Allow command line utilities, which follow pattern *Main.java, to call
system exit -->
<Match>
<Class name="~org\.apache\.zookeeper\..*Main" />
<Bug pattern="DM_EXIT" />
</Match>
<!-- This is too complicated to resolve/ingrained into the architecture
In particular we want to make sure we exit if this occurs
Also notice logged as fatal error -->
<Match>
<Class name="org.apache.zookeeper.server.ZooKeeperCriticalThread" />
<Method name="handleException" />
<Bug pattern="DM_EXIT" />
</Match>
<!-- In particular we want to make sure we exit if this occurs, unrecoverable.
Also notice logged as fatal error -->
<Match>
<Class name="org.apache.zookeeper.server.ZooKeeperServer" />
<Method name="takeSnapshot" />
<Bug pattern="DM_EXIT" />
</Match>
<!-- We want to catch all exceptions and cleanup, regardless of source
(incl runtime) -->
<Match>
<Class name="org.apache.zookeeper.ClientCnxn$SendThread" />
<Method name="run" />
<Bug pattern="REC_CATCH_EXCEPTION" />
</Match>
<!-- If we cannot open a socket to elect a leader, then we should
simply exit -->
<Match>
<Class name="org.apache.zookeeper.server.quorum.LeaderElection" />
<Method name="lookForLeader" />
<Bug pattern="DM_EXIT" />
</Match>
<!-- Committing out of order is an unrecoverable error, so we should
really exit -->
<Match>
<Class name="org.apache.zookeeper.server.quorum.FollowerZooKeeperServer" />
<Method name="commit" />
<Bug pattern="DM_EXIT" />
</Match>
<!-- Two unrecoverable errors while following the leader -->
<Match>
<Class name="org.apache.zookeeper.server.quorum.Learner" />
<Method name="syncWithLeader" />
<Bug pattern="DM_EXIT" />
</Match>
<Match>
<Package name="org.apache.jute.compiler.generated" />
</Match>
<Match>
<Package name="~org\.apache\.zookeeper\.(proto|data|txn)" />
<Bug code="EI, EI2" />
</Match>
<Match>
<Class name="org.apache.zookeeper.server.DataNode" />
<Bug code="EI2"/>
</Match>
<Match>
<Class name="org.apache.zookeeper.server.quorum.QuorumPacket" />
<Bug code="EI2, EI" />
</Match>
<Match>
<Class name="org.apache.zookeeper.ClientCnxn"/>
<Bug code="EI, EI2" />
</Match>
<Match>
<Class name="org.apache.zookeeper.server.DataNode"/>
<Field name="children"/>
<Bug code="IS"/>
</Match>
<Match>
<Class name="org.apache.zookeeper.server.quorum.Leader"/>
<Field name="lastProposed"/>
<Bug code="IS"/>
</Match>
<Match>
<Class name="org.apache.zookeeper.server.quorum.LearnerSessionTracker"/>
<Bug code="UrF"/>
</Match>
<Match>
<Class name="org.apache.zookeeper.server.quorum.AuthFastLeaderElection$Messenger$WorkerSender"/>
<Method name="process"/>
<Bug code="RV"/>
</Match>
<!-- these are old classes just for upgrading and should go away -->
<Match>
<Class name="org.apache.zookeeper.server.upgrade.DataNodeV1"/>
</Match>
<Match>
<Class name="org.apache.zookeeper.server.upgrade.DataTreeV1"/>
</Match>
<!-- References code in a generated file that may or maynot be null -->
<Match>
<Class name="org.apache.zookeeper.Version" />
<Method name="getVersion" />
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE" />
</Match>
<!-- sync'd object is also being used to protect the isrunning flag, this is ok -->
<Match>
<Class name="org.apache.zookeeper.ClientCnxn$EventThread"/>
<Bug code="JLM"/>
<Or>
<Method name="queuePacket" />
<Method name="run" />
</Or>
</Match>
<Match>
<Class name="org.apache.zookeeper.server.quorum.QuorumPeer"/>
<Bug pattern="OS_OPEN_STREAM" />
<Method name="writeLongToFile" />
</Match>
<!-- this is a helper routine to wakeup the main thread with the
state change happening in the routines that call it -->
<Match>
<Class name="org.apache.zookeeper.server.quorum.CommitProcessor"/>
<Bug pattern="NN_NAKED_NOTIFY" />
<Method name="wakeup" />
</Match>
<!-- Disable encoding warnings -->
<Match>
<Bug pattern="DM_DEFAULT_ENCODING" />
</Match>
</FindBugsFilter>