Skip to content

Commit 33f0582

Browse files
[typo] fix typos commited -> committed (#1457)
1 parent 0e8b5ea commit 33f0582

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/tiering/committer/TieringCommitOperator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
* LakeCommitter#toCommittable(List)}, and then call method {@link LakeCommitter#commit(Object,
7676
* Map)} to commit to lake.
7777
*
78-
* <p>Finally, it will also commit the commited lake snapshot to Fluss cluster to make Fluss aware
78+
* <p>Finally, it will also commit the committed lake snapshot to Fluss cluster to make Fluss aware
7979
* of the tiering progress.
8080
*/
8181
public class TieringCommitOperator<WriteResult, Committable>
@@ -195,23 +195,23 @@ private Committable commitWriteResults(
195195

196196
// to committable
197197
Committable committable = lakeCommitter.toCommittable(writeResults);
198-
// before commit to lake, check fluss not missing any lake snapshot commited by fluss
198+
// before commit to lake, check fluss not missing any lake snapshot committed by fluss
199199
checkFlussNotMissingLakeSnapshot(
200200
tablePath,
201201
lakeCommitter,
202202
committable,
203203
flussCurrentLakeSnapshot == null
204204
? null
205205
: flussCurrentLakeSnapshot.getSnapshotId());
206-
long commitedSnapshotId =
206+
long committedSnapshotId =
207207
lakeCommitter.commit(committable, toBucketOffsetsProperty(logOffsets));
208208
// commit to fluss
209209
Map<TableBucket, Long> logEndOffsets = new HashMap<>();
210210
for (TableBucketWriteResult<WriteResult> writeResult : committableWriteResults) {
211211
logEndOffsets.put(writeResult.tableBucket(), writeResult.logEndOffset());
212212
}
213213
flussTableLakeSnapshotCommitter.commit(
214-
new FlussTableLakeSnapshot(tableId, commitedSnapshotId, logEndOffsets));
214+
new FlussTableLakeSnapshot(tableId, committedSnapshotId, logEndOffsets));
215215
return committable;
216216
}
217217
}

fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/tiering/committer/TieringCommitOperatorTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ void testCommitMeetsEmptyWriteResult() throws Exception {
231231

232232
@Test
233233
void testTableCommitWhenFlussMissingLakeSnapshot() throws Exception {
234-
CommittedLakeSnapshot mockCommitedSnapshot =
234+
CommittedLakeSnapshot mockCommittedSnapshot =
235235
mockCommittedLakeSnapshot(Collections.singletonList(null), 2);
236236
TestingLakeTieringFactory.TestingLakeCommitter testingLakeCommitter =
237-
new TestingLakeTieringFactory.TestingLakeCommitter(mockCommitedSnapshot);
237+
new TestingLakeTieringFactory.TestingLakeCommitter(mockCommittedSnapshot);
238238
committerOperator =
239239
new TieringCommitOperator<>(
240240
parameters,
@@ -257,15 +257,15 @@ void testTableCommitWhenFlussMissingLakeSnapshot() throws Exception {
257257
tablePath,
258258
tableId,
259259
2,
260-
getExpectedLogEndOffsets(tableId, mockCommitedSnapshot, Collections.emptyMap()),
260+
getExpectedLogEndOffsets(tableId, mockCommittedSnapshot, Collections.emptyMap()),
261261
String.format(
262262
"The current Fluss's lake snapshot %d is less than lake actual snapshot %d committed by Fluss for table: {tablePath=%s, tableId=%d},"
263263
+ " missing snapshot: %s.",
264264
null,
265-
mockCommitedSnapshot.getLakeSnapshotId(),
265+
mockCommittedSnapshot.getLakeSnapshotId(),
266266
tablePath,
267267
tableId,
268-
mockCommitedSnapshot));
268+
mockCommittedSnapshot));
269269

270270
Map<TableBucket, Long> expectedLogEndOffsets = new HashMap<>();
271271
for (int bucket = 0; bucket < 3; bucket++) {
@@ -290,10 +290,10 @@ void testPartitionedTableCommitWhenFlussMissingLakeSnapshot() throws Exception {
290290
Map<String, Long> partitionIdByNames =
291291
FLUSS_CLUSTER_EXTENSION.waitUntilPartitionAllReady(tablePath);
292292

293-
CommittedLakeSnapshot mockCommitedSnapshot =
293+
CommittedLakeSnapshot mockCommittedSnapshot =
294294
mockCommittedLakeSnapshot(Collections.singletonList(null), 3);
295295
TestingLakeTieringFactory.TestingLakeCommitter testingLakeCommitter =
296-
new TestingLakeTieringFactory.TestingLakeCommitter(mockCommitedSnapshot);
296+
new TestingLakeTieringFactory.TestingLakeCommitter(mockCommittedSnapshot);
297297
committerOperator =
298298
new TieringCommitOperator<>(
299299
parameters,
@@ -317,14 +317,14 @@ void testPartitionedTableCommitWhenFlussMissingLakeSnapshot() throws Exception {
317317
tablePath,
318318
tableId,
319319
3,
320-
getExpectedLogEndOffsets(tableId, mockCommitedSnapshot, Collections.emptyMap()),
320+
getExpectedLogEndOffsets(tableId, mockCommittedSnapshot, Collections.emptyMap()),
321321
String.format(
322322
"The current Fluss's lake snapshot %d is less than lake actual snapshot %d committed by Fluss for table: {tablePath=%s, tableId=%d}, missing snapshot: %s.",
323323
null,
324-
mockCommitedSnapshot.getLakeSnapshotId(),
324+
mockCommittedSnapshot.getLakeSnapshotId(),
325325
tablePath,
326326
tableId,
327-
mockCommitedSnapshot));
327+
mockCommittedSnapshot));
328328
}
329329

330330
private CommittedLakeSnapshot mockCommittedLakeSnapshot(List<Long> partitions, int snapshotId) {

fluss-lake/fluss-lake-paimon/src/main/java/com/alibaba/fluss/lake/paimon/tiering/PaimonLakeCommitter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public CommittedLakeSnapshot getMissingLakeSnapshot(@Nullable Long latestLakeSna
167167

168168
@Nullable
169169
private Snapshot getCommittedLatestSnapshotOfLake(String commitUser) throws IOException {
170-
// get the latest snapshot commited by fluss or latest commited id
170+
// get the latest snapshot committed by fluss or latest committed id
171171
SnapshotManager snapshotManager = fileStoreTable.snapshotManager();
172172
Long userCommittedSnapshotIdOrLatestCommitId =
173173
fileStoreTable
@@ -182,7 +182,7 @@ private Snapshot getCommittedLatestSnapshotOfLake(String commitUser) throws IOEx
182182
Snapshot snapshot = snapshotManager.tryGetSnapshot(userCommittedSnapshotIdOrLatestCommitId);
183183

184184
if (!snapshot.commitUser().equals(commitUser)) {
185-
// the snapshot is still not commited by Fluss, return directly
185+
// the snapshot is still not committed by Fluss, return directly
186186
return null;
187187
}
188188
return snapshot;

0 commit comments

Comments
 (0)