Skip to content

Commit 92e0447

Browse files
committed
tmp
1 parent 1ab890a commit 92e0447

File tree

137 files changed

+720
-369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+720
-369
lines changed

fluss-client/src/main/java/org/apache/fluss/client/FlussConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public RemoteFileDownloader getOrCreateRemoteFileDownloader() {
152152
if (securityTokenManager == null) {
153153
// prepare security token manager
154154
// create the admin read only gateway
155-
// todo: may addColumn retry logic when no any available tablet server?
155+
// todo: may add retry logic when no any available tablet server?
156156
AdminReadOnlyGateway gateway =
157157
GatewayClientProxy.createGatewayProxy(
158158
() ->

fluss-client/src/main/java/org/apache/fluss/client/admin/Admin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ CompletableFuture<List<PartitionInfo>> listPartitionInfos(
310310
* </ul>
311311
*
312312
* @param tablePath The table path of the table.
313-
* @param partitionSpec The partition spec to addColumn.
313+
* @param partitionSpec The partition spec to add.
314314
* @param ignoreIfExists Flag to specify behavior when a partition with the given name already
315315
* exists: if set to false, throw a PartitionAlreadyExistsException, if set to true, do
316316
* nothing.

fluss-client/src/main/java/org/apache/fluss/client/lookup/LookupSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void run() {
107107
}
108108
}
109109

110-
// TODO if force close failed, addColumn logic to abort incomplete lookup requests.
110+
// TODO if force close failed, add logic to abort incomplete lookup requests.
111111
LOG.debug("Shutdown of Fluss lookup sender I/O thread has completed.");
112112
}
113113

fluss-client/src/main/java/org/apache/fluss/client/table/scanner/batch/BatchScanUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ public static List<InternalRow> collectLimitedRows(List<BatchScanner> scanners,
6868
CloseableIterator<InternalRow> iterator = scanner.pollBatch(DEFAULT_POLL_TIMEOUT);
6969
if (iterator != null) {
7070
rows.addAll(toList(iterator));
71-
// If the scanner has more data, addColumn it back to the queue
71+
// If the scanner has more data, add it back to the queue
7272
scannerQueue.add(scanner);
7373
} else {
74-
// Close the scanner if it has no more data, and not addColumn it back to the
74+
// Close the scanner if it has no more data, and not add it back to the
7575
// queue
7676
scanner.close();
7777
}

fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/BucketScanStatus.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
class BucketScanStatus {
2525
private long offset; // last consumed position
2626
private long highWatermark; // the high watermark from last fetch
27-
// TODO addColumn resetStrategy and nextAllowedRetryTimeMs.
27+
// TODO add
28+
// resetStrategy and nextAllowedRetryTimeMs.
2829

2930
public BucketScanStatus() {
3031
this.offset = 0L;

fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/CompletedFetch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public CompletedFetch(
9797
// from underlying record stream and arrow buffer.
9898
ScanRecord toScanRecord(LogRecord record) {
9999
GenericRow newRow = new GenericRow(selectedFieldGetters.length);
100+
// todo: replace here or outside of this method.
100101
InternalRow internalRow = record.getRow();
101102
for (int i = 0; i < selectedFieldGetters.length; i++) {
102103
newRow.setField(i, selectedFieldGetters[i].getFieldOrNull(internalRow));

fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/LogFetcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private synchronized void handleFetchLogResponse(
360360
LogRecords logRecords = fetchResultForBucket.recordsOrEmpty();
361361
if (!MemoryLogRecords.EMPTY.equals(logRecords)
362362
|| fetchResultForBucket.getErrorCode() != Errors.NONE.code()) {
363-
// In oder to not signal notEmptyCondition, addColumn completed
363+
// In oder to not signal notEmptyCondition, add completed
364364
// fetch to
365365
// buffer until log records is not empty.
366366
DefaultCompletedFetch completedFetch =
@@ -432,7 +432,7 @@ private Map<Integer, FetchLogRequest> prepareFetchLogRequests() {
432432
continue;
433433
}
434434

435-
// TODO addColumn select preferred read replica, currently we can only read from leader.
435+
// TODO add select preferred read replica, currently we can only read from leader.
436436

437437
Integer leader = getTableBucketLeader(tb);
438438
if (leader == null) {

fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/LogScannerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public LogScannerImpl(
8686
this.tablePath = tableInfo.getTablePath();
8787
this.tableId = tableInfo.getTableId();
8888
this.isPartitionedTable = tableInfo.isPartitioned();
89-
// addColumn this table to metadata updater.
89+
// add this table to metadata updater.
9090
metadataUpdater.checkAndUpdateTableMetadata(Collections.singleton(tablePath));
9191
this.logScannerStatus = new LogScannerStatus();
9292
this.metadataUpdater = metadataUpdater;

fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/RemoteLogDownloader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public RemoteLogDownloader(
108108
this.prefetchSemaphore =
109109
new Semaphore(conf.getInt(ConfigOptions.CLIENT_SCANNER_REMOTE_LOG_PREFETCH_NUM));
110110
// The local tmp dir to store the fetched log segment files,
111-
// addColumn UUID to avoid conflict between tasks.
111+
// add UUID to avoid conflict between tasks.
112112
this.localLogDir =
113113
Paths.get(
114114
conf.get(ConfigOptions.CLIENT_SCANNER_IO_TMP_DIR),
@@ -172,7 +172,7 @@ void fetchOnce() throws Exception {
172172
ExceptionUtils.stripExecutionException(throwable));
173173
// release the semaphore for the failed request
174174
prefetchSemaphore.release();
175-
// addColumn back the request to the queue,
175+
// add back the request to the queue,
176176
// so we do not complete the request.future here
177177
segmentsToFetch.add(request);
178178
scannerMetricGroup.remoteFetchErrorCount().inc();
@@ -191,7 +191,7 @@ void fetchOnce() throws Exception {
191191
});
192192
} catch (Throwable t) {
193193
prefetchSemaphore.release();
194-
// addColumn back the request to the queue
194+
// add back the request to the queue
195195
segmentsToFetch.add(request);
196196
scannerMetricGroup.remoteFetchErrorCount().inc();
197197
// log the error and continue instead of shutdown the download thread

fluss-client/src/main/java/org/apache/fluss/client/utils/ClientRpcMessageUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public static PbAlterColumn toPbAlterColumn(TableChange tableChange) {
361361
PbAlterColumn pbAlterColumn = new PbAlterColumn();
362362
if (tableChange instanceof TableChange.AddColumn) {
363363
TableChange.AddColumn addColumn = (TableChange.AddColumn) tableChange;
364-
// only support addColumn column at last now.
364+
// only support add column at last now.
365365
if (addColumn.getPosition() != TableChange.ColumnPosition.last()) {
366366
throw new IllegalArgumentException(
367367
"Unsupported column position: " + addColumn.getPosition());

0 commit comments

Comments
 (0)