Open triplem opened 5 years ago
package org.ektorp;
import java.io.; import java.util.;
import com.fasterxml.jackson.annotation.; import org.ektorp.util.; import com.fasterxml.jackson.databind.JsonNode;
/*
*/ public class DbInfo implements Serializable {
private static final long serialVersionUID = -6511885014968791685L;
private final String dbName;
@JsonProperty("compact_running") boolean compactRunning; @JsonProperty("disk_format_version") int diskFormatVersion; @JsonProperty("disk_size") long diskSize; @JsonProperty("doc_count") long docCount; @JsonProperty("doc_del_count") int docDelCount; @JsonProperty("instance_start_time") long instanceStartTime; @JsonProperty("purge_seq") String purgeSeq; @JsonProperty("update_seq") @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="SE_BAD_FIELD") JsonNode updateSeq; /**
public boolean isCompactRunning() { return compactRunning; } /**
@JsonCreator public DbInfo(@JsonProperty("db_name") String dbName) { Assert.hasText(dbName, "dbName may not be null or empty"); this.dbName = dbName; }
@JsonAnySetter public void setUnknown(String key, Object value) { unknownFields().put(key, value); }
public Map<String, Object> getUnknownFields() { return unknownFields(); }
private Map<String, Object> unknownFields() { if (unknownFields == null) { unknownFields = new HashMap<String, Object>(); } return unknownFields; }
@Override public boolean equals(Object o) { if (o == this) return true; if (o instanceof DbInfo) { DbInfo dbi = (DbInfo) o; return dbName.equals(dbi.dbName); } return false; }
@Override public int hashCode() { return dbName.hashCode(); }
}
+1 According to https://docs.couchdb.org/en/stable/api/database/common.html purge_seq should be a string
How is this still open? Is this project dead?
Is this still maintained? It looks like this needs fixing as others have mentioned above. Can we help get this moving forward?
In my couchDB the field DbInfo.purge_seq is a String and not an int.
{"db_name":"ngs","purge_seq":"0-g1AAAAEzeJzLYWBg4MhgTmHgzcvPy09JdcjLz8gvLskBCjPlsQBJhgdA6j8QZCUy4FCXlAAkk-rxqoGYdQBi1n1C6hZA1O0npK4Bom4-Hrc5gNwWj9_9CiA19njVJDIkyUMUZAEAK_Ni9g","update_seq":"14-g1AAAAEzeJzLYWBg4MhgTmHgzcvPy09JdcjLz8gvLskBCjMlMiTJ____PyuREYeCJAUgmWQPVsOES40DSE08fnMSQGrq8arJYwGSDA1ACqhsflYiC151CyDq9hMy7wBE3X1C5j2AqAO6jyELAI--YwQ","sizes":{"file":112062,"external":403979,"active":30913},"other":{"data_size":403979},"doc_del_count":0,"doc_count":14,"disk_size":112062,"disk_format_version":7,"data_size":30913,"compact_running":false,"cluster":{"q":8,"n":1,"w":1,"r":1},"instance_start_time":"0"}
Therefor this Object cannot get de-serialized correctly. My CouchDB is version 2.3.0.