Skip to content

Commit 2fcc69c

Browse files
authored
Update to Kudu 1.13 (#5)
1 parent 42a6555 commit 2fcc69c

File tree

96 files changed

+44
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+44
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup .NET Core
1818
uses: actions/setup-dotnet@v1
1919
with:
20-
dotnet-version: 3.1.300
20+
dotnet-version: 3.1.402
2121
- name: Build
2222
run: dotnet build --configuration Release
2323

@@ -33,7 +33,7 @@ jobs:
3333
- name: Setup .NET Core
3434
uses: actions/setup-dotnet@v1
3535
with:
36-
dotnet-version: 3.1.300
36+
dotnet-version: 3.1.402
3737
- name: Publish on version change
3838
uses: rohith/publish-nuget@v2
3939
with:

src/Knet.Kudu.Binary/Knet.Kudu.Binary.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<NoWarn>CS1591</NoWarn>
66

77
<PackageId>$(AssemblyName)</PackageId>
8-
<Version>0.1.0-preview.1</Version>
8+
<Version>1.13.0-preview.1</Version>
99
<Authors>xqrzd</Authors>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111
<Description>Native Apache Kudu binary for testing</Description>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/Knet.Kudu.Binary/runtimes/linux-x64/native/kudu/www/jquery-3.5.1.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Knet.Kudu.Binary/runtimes/linux-x64/native/kudu/www/kudu.js

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,36 @@ function toNumBytes(humanReadableBytes) {
4545
return val;
4646
}
4747

48+
// Converts a human-readable numeric strings like '1.23k' or '985.32M' to int.
49+
// Returns -1 if there's some failure.
50+
function toInt(humanReadableNum) {
51+
len = humanReadableNum.length;
52+
if (len < 1) {
53+
return -1;
54+
}
55+
end = humanReadableNum[len - 1];
56+
val = parseFloat(humanReadableNum);
57+
if (isNaN(val)) {
58+
return -1;
59+
}
60+
if (end == 'k') {
61+
val *= 1e3;
62+
} else if (end == 'M') {
63+
val *= 1e6;
64+
} else if (end == 'B') {
65+
val *= 1e9;
66+
} else if (end == 'T') {
67+
val *= 1e12; // Number bigger than 1E15 use scientific notation.
68+
} else if (isNaN(end)) {
69+
// Not a number.
70+
return -1;
71+
}
72+
if (val < 0) {
73+
return parseInt(val - 0.5);
74+
}
75+
return parseInt(val + 0.5);
76+
}
77+
4878
// A comparison function for human-readable byte strings.
4979
function bytesSorter(left, right) {
5080
if (right.length == 0 && left.length == 0) {
@@ -80,10 +110,10 @@ function floatsSorter(left, right) {
80110
return 0;
81111
}
82112

83-
// Converts numeric strings to numbers and then compares them.
113+
// Converts human-readable numeric strings to numbers and then compares them.
84114
function numericStringsSorter(left, right) {
85-
left_num = parseInt(left, 10);
86-
right_num = parseInt(right, 10);
115+
left_num = toInt(left);
116+
right_num = toInt(right);
87117
if (left_num < right_num) {
88118
return -1;
89119
}

src/Knet.Kudu.Binary/runtimes/linux-x64/native/kudu/www/maintenance-manager.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ under the License.
6666
<th data-sorter="bytesSorter" data-sortable="true">RAM anchored</th>
6767
<th data-sorter="bytesSorter" data-sortable="true">Logs retained</th>
6868
<th data-sortable="true">Perf</th>
69+
<th data-sortable="true">Workload score</th>
6970
</tr>
7071
</thead>
7172
<tbody>
@@ -76,6 +77,7 @@ under the License.
7677
<td>{{ram_anchored}}</td>
7778
<td>{{logs_retained}}</td>
7879
<td>{{perf}}</td>
80+
<td>{{workload_score}}</td>
7981
</tr>
8082
{{/registered_operations}}
8183
</tbody>

src/Knet.Kudu.Binary/runtimes/linux-x64/native/kudu/www/metrics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<title>Kudu metrics gauges</title>
2020
<link rel="stylesheet" type="text/css" href="epoch.0.5.2.min.css" />
2121

22-
<script type="text/javascript" src="jquery-3.2.1.min.js"></script>
22+
<script type="text/javascript" src="jquery-3.5.1.min.js"></script>
2323
<script type="text/javascript" src="d3.v2.js"></script>
2424
<script type="text/javascript" src="epoch.0.5.2.min.js"></script>
2525
<script type="text/javascript" src="metrics-epoch.js"></script>

src/Knet.Kudu.Binary/runtimes/linux-x64/native/kudu/www/table.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ under the License.
2929
<h2>Table: {{name}} ({{id}})</h2>
3030
<table class="table table-striped">
3131
<tbody>
32+
<tr><td>Owner:</td><td>{{owner}}</td></tr>
3233
<tr><td>Version:</td><td>{{version}}</td></tr>
3334
<tr><td>State:</td><td>{{state}} {{#state_msg}}({{.}}){{/state_msg}}</td></tr>
3435
<tr><td>Column Count:</td><td>{{column_count}}</td></tr>

src/Knet.Kudu.Binary/runtimes/linux-x64/native/kudu/www/tables.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ There are {{num_tables}} tables.
3232
<thead><tr>
3333
<th data-sorter="stringsSorter" data-sortable="true">Table Name</th>
3434
<th>Table Id</th>
35+
<th data-sorter="stringsSorter" data-sortable="true">Owner</th>
3536
<th>State</th>
3637
<th>State Message</th>
3738
<th data-sorter="numericStringsSorter" data-sortable="true">Tablet Count</th>
@@ -44,6 +45,7 @@ There are {{num_tables}} tables.
4445
<tr>
4546
<td>{{name}}</td>
4647
<td><a href="{{base_url}}/table?id={{id}}">{{id}}</a></td>
48+
<td>{{owner}}</td>
4749
<td>{{state}}</td>
4850
<td>{{message}}</td>
4951
<td>{{tablet_count}}</td>

0 commit comments

Comments
 (0)