Skip to content

Commit

Permalink
fix some typos (apache#5889)
Browse files Browse the repository at this point in the history
fix some typos in the comments
  • Loading branch information
jiazhai authored and sijie committed Dec 20, 2019
1 parent e18463f commit 5ffca81
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public void operationComplete(ManagedLedgerInfo mlInfo, Stat stat) {
};

if (log.isDebugEnabled()) {
log.debug("[{}] Opening legder {}", name, id);
log.debug("[{}] Opening ledger {}", name, id);
}
mbean.startDataLedgerOpenOp();
bookKeeper.asyncOpenLedger(id, digestType, config.getPassword(), opencb, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public void sendComplete(Exception exception) {
if (exception != null && !(exception instanceof PulsarClientException.InvalidMessageException)) {
log.error("[{}][{} -> {}] Error producing on remote broker", replicator.topicName,
replicator.localCluster, replicator.remoteCluster, exception);
// cursor shoud be rewinded since it was incremented when readMoreEntries
// cursor should be rewinded since it was incremented when readMoreEntries
replicator.cursor.rewind();
} else {
if (log.isDebugEnabled()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public void testMultipleBrokerLookup() throws Exception {
/**
* Usecase: Redirection due to different cluster 1. Broker1 runs on cluster: "use" and Broker2 runs on cluster:
* "use2" 2. Broker1 receives "use2" cluster request => Broker1 reads "/clusters" from global-zookkeeper and
* redirects request to Broker2 whch serves "use2" 3. Broker2 receives redirect request and own namespace bundle
* redirects request to Broker2 which serves "use2" 3. Broker2 receives redirect request and own namespace bundle
*
* @throws Exception
*/
Expand Down Expand Up @@ -1201,4 +1201,4 @@ public String authenticate(AuthenticationDataSource authData) throws Authenticat
return "invalid";
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public SslContextAutoRefreshBuilder(boolean allowInsecure, String trustCertsFile
}

/**
* udpates and returns cached SSLContext.
* updates and returns cached SSLContext.
*
* @return
* @throws GeneralSecurityException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void setUp() throws Exception {
"PRIMARY KEY (field1));"
);

// prepare data for udpate sql
// prepare data for update sql
String updateSql = "insert into " + tableName + " values('ValueOfField4', 'ValueOfField4', 4)";
sqliteUtils.execute(updateSql);

Expand Down

0 comments on commit 5ffca81

Please sign in to comment.