Skip to content

Commit

Permalink
[hotfix] Metric reporting for non-partitioned tables
Browse files Browse the repository at this point in the history
- Fix spotless errors
- Change debug message
  • Loading branch information
michaelkoepf committed Jan 8, 2025
1 parent 7de0227 commit bb9806f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.alibaba.fluss.metrics.util.TestHistogram;
import com.alibaba.fluss.metrics.util.TestMeter;
import com.alibaba.fluss.metrics.util.TestMetricGroup;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;

Expand All @@ -34,6 +35,7 @@
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;

import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ protected void putVariables(Map<String, String> variables) {
if (physicalTablePath.getPartitionName() != null) {
variables.put("partition", physicalTablePath.getPartitionName());
} else {
LOG.debug(
"Setting variable 'partition' for non-partitioned table to empty string to ensure consistent metric labels across metric reporters.");
LOG.debug("Setting variable 'partition' for non-partitioned table to empty string.");
variables.put("partition", "");
}
}
Expand Down

0 comments on commit bb9806f

Please sign in to comment.