Skip to content

Commit

Permalink
feat: move log4j2.xml to conf (#561)
Browse files Browse the repository at this point in the history
Signed-off-by: Li Zhanhui <[email protected]>
  • Loading branch information
lizhanhui authored Nov 3, 2023
1 parent 826bf3b commit 68b4bb3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public void process() throws ControllerException {
recyclable.addAll(streamObjectMapper.recyclable(streamIds, threshold));
}

if (recyclable.isEmpty()) {
return;
}

metadataStore.getDataStore().batchDeleteS3Objects(recyclable)
.whenComplete((list, e) -> {
if (null != e) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,21 @@ public CompletableFuture<Void> commitWalObject(S3WALObject walObject,
return CompletableFuture.failedFuture(e);
}

LOGGER.info("commitWalObject with walObject: {}, streamObjects: {}, compactedObjects: {}",
LOGGER.info("commitWalObject with walObject=[{}], streamObjects=[{}], compactedObjects={}",
TextFormat.shortDebugString(walObject),
streamObjects.stream()
.map(TextFormat::shortDebugString)
.collect(Collectors.joining()), compactedObjects
);

// Debug
for (S3StreamObject item : streamObjects) {
if (item.getStreamId() <= 0) {
LOGGER.error("Yuck, S3StreamObject is having invalid stream-id: {}",
TextFormat.printer().printToString(item));
}
}

CompletableFuture<Void> future = new CompletableFuture<>();
try (SqlSession session = sessionFactory.openSession()) {
S3WalObjectMapper s3WALObjectMapper = session.getMapper(S3WalObjectMapper.class);
Expand Down

0 comments on commit 68b4bb3

Please sign in to comment.