Skip to content

Commit

Permalink
Set default Metastore recording duration to 10m
Browse files Browse the repository at this point in the history
Metastore recorder is disabled by default and enabled
only when hive.metastore-recording-path is set
to non-null value. When enablind it should
have a resonable default recording duration set.
  • Loading branch information
sopel39 committed May 2, 2019
1 parent ab5702f commit c69f214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public class HiveConfig

private String recordingPath;
private boolean replay;
private Duration recordingDuration = new Duration(0, MINUTES);
private Duration recordingDuration = new Duration(10, MINUTES);
private boolean s3SelectPushdownEnabled;
private int s3SelectPushdownMaxConnections = 500;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void testDefaults()
.setPartitionStatisticsSampleSize(100)
.setIgnoreCorruptedStatistics(false)
.setRecordingPath(null)
.setRecordingDuration(new Duration(0, TimeUnit.MINUTES))
.setRecordingDuration(new Duration(10, TimeUnit.MINUTES))
.setReplay(false)
.setCollectColumnStatisticsOnWrite(false)
.setS3SelectPushdownEnabled(false)
Expand Down

0 comments on commit c69f214

Please sign in to comment.