Skip to content

Commit b2a6893

Browse files
authored
chore: reduce production noise by using debug macro (#19885)
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> - Closes #19846. ## Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> ## What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> ## Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> ## Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!-- If there are any breaking changes to public APIs, please add the `api change` label. --> Signed-off-by: StandingMan <jmtangcs@gmail.com>
1 parent 8c478e9 commit b2a6893

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • datafusion/physical-plan/src/spill

datafusion/physical-plan/src/spill/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use datafusion_common_runtime::SpawnedTask;
4949
use datafusion_execution::RecordBatchStream;
5050
use datafusion_execution::disk_manager::RefCountedTempFile;
5151
use futures::{FutureExt as _, Stream};
52-
use log::warn;
52+
use log::debug;
5353

5454
/// Stream that reads spill files from disk where each batch is read in a spawned blocking task
5555
/// It will read one batch at a time and will not do any buffering, to buffer data use [`crate::common::spawn_buffered`]
@@ -154,7 +154,7 @@ impl SpillReaderStream {
154154
> max_record_batch_memory
155155
+ SPILL_BATCH_MEMORY_MARGIN
156156
{
157-
warn!(
157+
debug!(
158158
"Record batch memory usage ({actual_size} bytes) exceeds the expected limit ({max_record_batch_memory} bytes) \n\
159159
by more than the allowed tolerance ({SPILL_BATCH_MEMORY_MARGIN} bytes).\n\
160160
This likely indicates a bug in memory accounting during spilling.\n\

0 commit comments

Comments
 (0)