mirror of https://github.com/apache/lucene.git
SOLR-9536: OldBackupDirectory timestamp field needs to be initialized to avoid NPE.
This commit is contained in:
parent
27ba8e2e82
commit
e152575f5e
|
@ -214,6 +214,9 @@ Bug Fixes
|
||||||
* SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner.
|
* SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner.
|
||||||
(Hrishikesh Gadre via Mark Miller)
|
(Hrishikesh Gadre via Mark Miller)
|
||||||
|
|
||||||
|
* SOLR-9536: OldBackupDirectory timestamp field needs to be initialized to avoid NPE.
|
||||||
|
(Hrishikesh Gadre via Mark Miller)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ class OldBackupDirectory implements Comparable<OldBackupDirectory> {
|
||||||
|
|
||||||
private URI basePath;
|
private URI basePath;
|
||||||
private String dirName;
|
private String dirName;
|
||||||
private Optional<Date> timestamp;
|
private Optional<Date> timestamp = Optional.empty();
|
||||||
|
|
||||||
public OldBackupDirectory(URI basePath, String dirName) {
|
public OldBackupDirectory(URI basePath, String dirName) {
|
||||||
this.dirName = Preconditions.checkNotNull(dirName);
|
this.dirName = Preconditions.checkNotNull(dirName);
|
||||||
|
|
Loading…
Reference in New Issue