File tree 2 files changed +2
-5
lines changed
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 40
40
public class LedgerDescriptorImpl extends LedgerDescriptor {
41
41
private static final Logger LOG = LoggerFactory .getLogger (LedgerDescriptorImpl .class );
42
42
final LedgerStorage ledgerStorage ;
43
- private long ledgerId ;
43
+ private final long ledgerId ;
44
44
final byte [] masterKey ;
45
45
46
- private AtomicBoolean fenceEntryPersisted = new AtomicBoolean ();
46
+ private final AtomicBoolean fenceEntryPersisted = new AtomicBoolean ();
47
47
private CompletableFuture <Boolean > logFenceResult = null ;
48
48
49
49
LedgerDescriptorImpl (byte [] masterKey ,
Original file line number Diff line number Diff line change @@ -34,19 +34,16 @@ public class LedgerDescriptorReadOnlyImpl extends LedgerDescriptorImpl {
34
34
35
35
@ Override
36
36
boolean setFenced () throws IOException {
37
- assert false ;
38
37
throw new IOException ("Invalid action on read only descriptor" );
39
38
}
40
39
41
40
@ Override
42
41
long addEntry (ByteBuf entry ) throws IOException {
43
- assert false ;
44
42
throw new IOException ("Invalid action on read only descriptor" );
45
43
}
46
44
47
45
@ Override
48
46
void checkAccess (byte [] masterKey ) throws BookieException , IOException {
49
- assert false ;
50
47
throw new IOException ("Invalid action on read only descriptor" );
51
48
}
52
49
}
You can’t perform that action at this time.
0 commit comments