This is an automated email from the ASF dual-hosted git repository.
wyk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new 057d193e10 [NO ISSUE][OTH] Change bootstrap log level to INFO
057d193e10 is described below
commit 057d193e10ddfac751e8c082ab56dd5746c3678c
Author: Wail Alkowaileet <[email protected]>
AuthorDate: Thu Jun 20 10:09:26 2024 -0700
[NO ISSUE][OTH] Change bootstrap log level to INFO
Change-Id: Idc512b58822cc59217ae8caa8756e37138581f01
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18390
Reviewed-by: Wail Alkowaileet <[email protected]>
Tested-by: Wail Alkowaileet <[email protected]>
Integration-Tests: Wail Alkowaileet <[email protected]>
---
.../java/org/apache/asterix/cloud/AbstractCloudIOManager.java | 2 +-
.../main/java/org/apache/asterix/cloud/LazyCloudIOManager.java | 4 ++--
.../main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java | 4 ++--
.../main/java/org/apache/asterix/cloud/util/CloudFileUtil.java | 8 +++-----
4 files changed, 8 insertions(+), 10 deletions(-)
diff --git
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
index 4dfcd5f2d0..35b074431e 100644
---
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
+++
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
@@ -123,7 +123,7 @@ public abstract class AbstractCloudIOManager extends
IOManager implements IParti
partitionPaths.add(resolve(STORAGE_ROOT_DIR_NAME + File.separator
+ partitionDir));
}
- LOGGER.warn("Initializing cloud manager with ({}) storage partitions:
{}", partitions.size(), partitions);
+ LOGGER.info("Initializing cloud manager with ({}) storage partitions:
{}", partitions.size(), partitions);
if (cleanup) {
deleteUnkeptPartitionDirs(currentOnDiskPartitions);
diff --git
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/LazyCloudIOManager.java
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/LazyCloudIOManager.java
index ad2392bf8e..49b919c3aa 100644
---
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/LazyCloudIOManager.java
+++
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/LazyCloudIOManager.java
@@ -147,12 +147,12 @@ final class LazyCloudIOManager extends
AbstractCloudIOManager {
boolean metadataNode, int metadataPartition) throws
HyracksDataException {
String partitionDir = PARTITION_DIR_PREFIX + metadataPartition;
if (metadataNode && uncachedFiles.stream().anyMatch(f ->
f.getRelativePath().contains(partitionDir))) {
- LOGGER.debug("Downloading metadata partition {}, Current uncached
files: {}", metadataPartition,
+ LOGGER.info("Downloading metadata partition {}, Current uncached
files: {}", metadataPartition,
uncachedFiles);
FileReference metadataDir = resolve(STORAGE_ROOT_DIR_NAME +
File.separator + partitionDir);
downloader.downloadDirectories(Collections.singleton(metadataDir));
uncachedFiles.removeIf(f ->
f.getRelativePath().contains(partitionDir));
- LOGGER.debug("Finished downloading metadata partition. Current
uncached files: {}", uncachedFiles);
+ LOGGER.info("Finished downloading metadata partition. Current
uncached files: {}", uncachedFiles);
}
}
diff --git
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
index a087ef17b6..56619c86d1 100644
---
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
+++
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
@@ -158,7 +158,7 @@ public final class ParallelCacher implements
IParallelCacher {
@Override
public boolean remove(Collection<FileReference> deletedFiles) {
if (!deletedFiles.isEmpty()) {
- LOGGER.debug("Deleting {}", deletedFiles);
+ LOGGER.debug("Delete {}", deletedFiles);
}
for (FileReference fileReference : deletedFiles) {
@@ -170,7 +170,7 @@ public final class ParallelCacher implements
IParallelCacher {
@Override
public boolean remove(FileReference fileReference) {
- LOGGER.debug("Deleting {}", fileReference);
+ LOGGER.debug("Delete {}", fileReference);
doRemove(fileReference);
return isEmpty();
}
diff --git
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/util/CloudFileUtil.java
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/util/CloudFileUtil.java
index 67ce2c83c0..dcc1b93c7e 100644
---
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/util/CloudFileUtil.java
+++
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/util/CloudFileUtil.java
@@ -49,7 +49,7 @@ public class CloudFileUtil {
// First get the set of local files
Set<FileReference> localFiles = ioManager.list(partitionPath);
Iterator<FileReference> localFilesIter = localFiles.iterator();
- LOGGER.debug("Cleaning partition {}.",
partitionPath.getRelativePath());
+ LOGGER.info("Cleaning partition {}.", partitionPath.getRelativePath());
// Reconcile local files and cloud files
while (localFilesIter.hasNext()) {
@@ -82,9 +82,7 @@ public class CloudFileUtil {
}
private static void logDeleteFile(FileReference fileReference) {
- if (LOGGER.isDebugEnabled()) {
- LOGGER.debug("Deleting {} from the local cache as {} doesn't exist
in the cloud", fileReference,
- fileReference.getRelativePath());
- }
+ LOGGER.info("Deleting {} from the local cache as {} doesn't exist in
the cloud", fileReference,
+ fileReference.getRelativePath());
}
}