Skip to content

Commit 8317cd9

Browse files
authored
[hotfix] Fix typo: excepted -> expected and sever->server (#1557)
1 parent d4dfb45 commit 8317cd9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fluss-common/src/main/java/com/alibaba/fluss/cluster/Endpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/**
4141
* Endpoint is what fluss server is listened for. It includes host, port and listener name. Listener
4242
* name is used for routing, all the fluss servers can have the same listener names to listen. For
43-
* example, coordinator server and tablet sever can use internal listener to communicate with each
43+
* example, coordinator server and tablet server can use internal listener to communicate with each
4444
* other. And If a client connect to a server with a host and port, it can only see the other
4545
* server's same listener.
4646
*/

fluss-rpc/src/main/java/com/alibaba/fluss/rpc/protocol/Errors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public enum Errors {
150150
STORAGE_EXCEPTION(26, "The general storage exception.", StorageException::new),
151151
OPERATION_NOT_ATTEMPTED_EXCEPTION(
152152
27,
153-
"The sever did not attempt to execute this operation.",
153+
"The server did not attempt to execute this operation.",
154154
OperationNotAttemptedException::new),
155155
NOT_ENOUGH_REPLICAS_AFTER_APPEND_EXCEPTION(
156156
28,

fluss-server/src/test/java/com/alibaba/fluss/server/kv/snapshot/KvSnapshotDataUploaderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ void testMultiThreadUploadCorrectly() throws Exception {
106106

107107
private void assertContentEqual(Path stateFilePath, FSDataInputStream inputStream)
108108
throws IOException {
109-
byte[] excepted = Files.readAllBytes(stateFilePath);
110-
byte[] actual = new byte[excepted.length];
109+
byte[] expected = Files.readAllBytes(stateFilePath);
110+
byte[] actual = new byte[expected.length];
111111
IOUtils.readFully(inputStream, actual, 0, actual.length);
112112
assertThat(inputStream.read()).isEqualTo(-1);
113-
assertThat(actual).isEqualTo(excepted);
113+
assertThat(actual).isEqualTo(expected);
114114
}
115115

116116
private List<Path> generateRandomSstFiles(

website/community/how-to-contribute/contribute-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Considerations before opening a pull request:
4949

5050
- Make sure that the pull request corresponds to a [GitHub issue](https://github.com/alibaba/fluss/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no issue.
5151

52-
- Name the pull request in the format "[component] Title of the pull request", where *[component]* should be replaced by the name of the component being changed. Typically, this corresponds to the component label assigned to the issue (e.g., [kv], [log], [client], [flink]). Skip *[component]* if you are unsure about which is the best component. **Hotfixes** should be named for example `[hotfix][docs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
52+
- Name the pull request in the format "[component] Title of the pull request", where *[component]* should be replaced by the name of the component being changed. Typically, this corresponds to the component label assigned to the issue (e.g., [kv], [log], [client], [flink]). Skip *[component]* if you are unsure about which is the best component. **Hotfixes** should be named for example `[hotfix][docs] Expand JavaDoc for PunctuatedWatermarkGenerator`.
5353

5454
- Fill out the pull request template to describe the changes contributed by the pull request. Please describe it such that the reviewer understands the problem and solution from the description, not only from the code. That will give reviewers the context they need to do the review.
5555

0 commit comments

Comments
 (0)