Skip to content

Commit

Permalink
Adding missing Java docs for new Translog implementation (opensearch-…
Browse files Browse the repository at this point in the history
…project#3936) (opensearch-project#5994)

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
(cherry picked from commit 07775ff)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 29a20dd commit b78b25a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ public void setMinSeqNoToKeep(long seqNo) {

/**
* Reads operations from the translog
* @param location
* @param location location of translog
* @return the translog operation
* @throws IOException
* @throws IOException throws an IO exception
*/
@Override
public Translog.Operation readOperation(Translog.Location location) throws IOException {
Expand All @@ -306,9 +306,9 @@ public Translog.Operation readOperation(Translog.Location location) throws IOExc

/**
* Adds an operation to the translog
* @param operation
* @param operation operation to add to translog
* @return the location in the translog
* @throws IOException
* @throws IOException throws an IO exception
*/
@Override
public Translog.Location add(Translog.Operation operation) throws IOException {
Expand Down Expand Up @@ -407,8 +407,8 @@ public String getTranslogUUID() {

/**
*
* @param localCheckpointOfLastCommit
* @param flushThreshold
* @param localCheckpointOfLastCommit local checkpoint reference of last commit to translog
* @param flushThreshold threshold to flush to translog
* @return if the translog should be flushed
*/
public boolean shouldPeriodicallyFlush(long localCheckpointOfLastCommit, long flushThreshold) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ public interface TranslogManager {
* Reads operations for the translog
* @param location the location in the translog
* @return the translog operation
* @throws IOException
* @throws IOException throws an IO exception when reading the file fails
*/
Translog.Operation readOperation(Translog.Location location) throws IOException;

/**
* Adds an operation to the translog
* @param operation
* @param operation to add to translog
* @return the location in the translog
* @throws IOException
* @throws IOException throws an IO exception if adding an operation fails
*/
Translog.Location add(Translog.Operation operation) throws IOException;

Expand Down

0 comments on commit b78b25a

Please sign in to comment.