public interface QuorumRead<S extends HAReadGlue>
Quorum
defining
methods to support reading on another member of the quorum.Modifier and Type | Method and Description |
---|---|
byte[] |
readFromQuorum(UUID storeId,
long addr)
Used by any service joined with the quorum to read a record from another
service joined with the quorum in order to work around a "bad read" as
identified by a checksum error on the local service.
|
byte[] readFromQuorum(UUID storeId, long addr) throws InterruptedException, IOException
Note: This is NOT the normal path for reading on a record from a service. This is used to handle bad reads (when a checksum or IO error is reported by the local disk) by reading the record from another member of the quorum.
storeId
- The UUID
of the IRawStore
from which the
record should be read.addr
- The address of a record on that store.IllegalStateException
- if the quorum is not highly available.RuntimeException
- if the quorum is highly available but the record could not be
read.InterruptedException
IOException
HAGlue#readFromDisk(UUID, long)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.