Skip to content

Commit d8b28ff

Browse files
authored
DM-51463: Fix issue with binary2 uploaded table appearing empty (#150)
1 parent 0f6b234 commit d8b28ff

File tree

3 files changed

+4
-37
lines changed

3 files changed

+4
-37
lines changed

src/main/java/org/opencadc/tap/impl/RubinUploadManagerImpl.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ public class RubinUploadManagerImpl extends BasicUploadManager {
6565
// TSV format delimiter.
6666
public static final char TSV_DELI = '\t';
6767

68-
public static final int MAX_UPLOAD_ROWS = 100000;
69-
7068
/**
7169
* Default expiration time for signed URLs in hours.
7270
*/
@@ -78,7 +76,6 @@ public class RubinUploadManagerImpl extends BasicUploadManager {
7876
*/
7977
static {
8078
MAX_UPLOAD = new UploadLimits(32 * 1024L * 1024L); // 32 Mb
81-
MAX_UPLOAD.rowLimit = MAX_UPLOAD_ROWS;
8279
}
8380

8481
/**
@@ -108,19 +105,6 @@ public class RubinUploadManagerImpl extends BasicUploadManager {
108105
*/
109106
protected Map<String, String> signedUrls;
110107

111-
/**
112-
* Backwards compatible constructor. This uses the default byte limit of 10MiB.
113-
*
114-
* @param rowLimit maximum number of rows
115-
* @deprecated use UploadLimits instead
116-
*/
117-
@Deprecated
118-
protected RubinUploadManagerImpl(int rowLimit) {
119-
// 10MiB of votable xml is roughly 17k rows x 10 columns
120-
this(new UploadLimits(10 * 1024L * 1024L));
121-
this.uploadLimits.rowLimit = rowLimit;
122-
}
123-
124108
public RubinUploadManagerImpl() {
125109
this(MAX_UPLOAD);
126110
}
@@ -309,7 +293,6 @@ private void writeDataWithoutHeaders(List<VOTableField> fields, TableData tableD
309293
throws IOException {
310294
Writer writer = new BufferedWriter(new OutputStreamWriter(out, UTF_8));
311295
CsvWriter csvWriter = new CsvWriter(writer, CSV_DELI);
312-
313296
try {
314297
FormatFactory formatFactory = new FormatFactory();
315298

src/main/resources/log4j2.xml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Configuration status="INFO" name="TAP ObsCore">
3-
<Properties>
4-
<Property name="SENTRY_ENABLED">${env:SENTRY_DSN:-}</Property>
5-
</Properties>
6-
73
<Appenders>
84
<Console name="Console" target="SYSTEM_OUT">
95
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %c [%t] %-5p %m%n"/>
106
</Console>
11-
12-
<!-- Sentry Appender - Only created if SENTRY_DSN is set -->
13-
<Sentry name="Sentry"
14-
minimumEventLevel="ERROR"
15-
minimumBreadcrumbLevel="WARN">
16-
<filters>
17-
<!-- Only allow if SENTRY_DSN is not empty -->
18-
<StringMatchFilter text="${SENTRY_ENABLED}" onMatch="ACCEPT" onMismatch="DENY"/>
19-
</filters>
20-
</Sentry>
217
</Appenders>
22-
8+
239
<Loggers>
2410
<Root level="INFO">
2511
<AppenderRef ref="Console"/>
26-
<AppenderRef ref="Sentry" level="ERROR"/>
2712
</Root>
2813
<Logger name="org.apache.kafka" level="INFO"/>
29-
3014
</Loggers>
31-
</Configuration>
15+
</Configuration>

src/main/webapp/capabilities.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
</outputLimit>
107107
<!-- outputLimit for sync queries: no limit -->
108108
<uploadLimit>
109-
<default unit="byte">10485760</default>
110-
<hard unit="byte">10485760</hard>
109+
<default unit="byte">33554432</default>
110+
<hard unit="byte">33554432</hard>
111111
</uploadLimit>
112112
</capability>
113113

0 commit comments

Comments
 (0)