lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject [1/2] lucene-solr:master: add message to assert
Date Thu, 02 Nov 2017 10:30:25 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master f564f9ca4 -> c6fb5ff80


add message to assert


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/380e6792
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/380e6792
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/380e6792

Branch: refs/heads/master
Commit: 380e67925301f98e4cb7f550d9873b238a1ffc1e
Parents: f564f9c
Author: Mike McCandless <mikemccand@apache.org>
Authored: Thu Nov 2 06:21:18 2017 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Thu Nov 2 06:21:18 2017 -0400

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/380e6792/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
----------------------------------------------------------------------
diff --git a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
index 417a26b..2d3e4d6 100644
--- a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
+++ b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
@@ -252,7 +252,7 @@ public abstract class PrimaryNode extends Node {
       for(String fileName : info.files()) {
         FileMetaData metaData = readLocalFileMetaData(fileName);
         // NOTE: we hold a refCount on this infos, so this file better exist:
-        assert metaData != null;
+        assert metaData != null: "file \"" + fileName + "\" is missing metadata";
         assert filesMetaData.containsKey(fileName) == false;
         filesMetaData.put(fileName, metaData);
       }


Mime
View raw message