Skip to content

Commit 498bf27

Browse files
Merge branch 'main' into upgrade-rocksdb
2 parents 0e75870 + 942eaad commit 498bf27

File tree

77 files changed

+2402
-181
lines changed

Some content is hidden

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

77 files changed

+2402
-181
lines changed

.github/workflows/docs-check.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@
1818

1919
# This workflow is meant for checking broken links in the documentation.
2020
name: Check Documentation
21+
permissions:
22+
contents: read
2123
on:
2224
pull_request:
2325
branches: [main, release-*, ci-*]
2426
paths:
2527
- 'website/**'
28+
push:
29+
branches: [main, release-*, ci-*]
30+
paths:
31+
- 'website/**'
2632

2733
jobs:
2834
test-deploy:

.github/workflows/docs-deploy.yaml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,27 @@
1616
# limitations under the License.
1717
################################################################################
1818
name: Deploy Documentation
19+
permissions:
20+
contents: read
1921
on:
2022
push:
2123
branches: [main, release-*]
2224
paths:
2325
- 'website/**'
2426

27+
# We use `repository_dispatch` to trigger the deployment job on the apache/fluss-website repository.
28+
# https://github.com/apache/fluss-website/blob/main/.github/workflows/website-deploy.yaml
29+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch
2530
jobs:
2631
deploy:
2732
runs-on: ubuntu-latest
28-
defaults:
29-
run:
30-
working-directory: ./website
3133
steps:
32-
- uses: actions/checkout@v4
33-
with:
34-
ref: main
35-
fetch-depth: 0
36-
- name: Generate versioned docs
37-
run: ./build_versioned_docs.sh
38-
- uses: actions/setup-node@v4
39-
with:
40-
node-version: 18
41-
- name: Install dependencies
42-
run: npm install
43-
- name: Build website
44-
run: npm run build
45-
- uses: webfactory/[email protected]
46-
with:
47-
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
48-
- name: Deploy website
49-
env:
50-
USE_SSH: true
34+
- name: Send Event to Trigger Deploy
5135
run: |
52-
git config --global user.email "[email protected]"
53-
git config --global user.name "gh-actions"
54-
npm run deploy -- --skip-build
36+
curl -L \
37+
-X POST \
38+
-H "Accept: application/vnd.github+json" \
39+
-H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" \
40+
-H "X-GitHub-Api-Version: 2022-11-28" \
41+
https://api.github.com/repos/apache/fluss-website/dispatches \
42+
-d '{"event_type":"website-deploy","client_payload":{"repository": "apache/fluss"}}'

.github/workflows/license-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# limitations under the License.
1515

1616
name: Check License
17+
permissions:
18+
contents: read
1719

1820
on: [push, pull_request]
1921

.idea/vcs.xml

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

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<source media="(prefers-color-scheme: dark)" srcset="website/static/img/logo/svg/white_color_logo.svg">
44
<source media="(prefers-color-scheme: light)" srcset="website/static/img/logo/svg/colored_logo.svg">
55
<!-- Fall back to version that works for dark and light mode -->
6-
<img alt="Fluss logo" src="website/static/img/logo/svg/white_filled.svg">
6+
<img alt="Apache Fluss logo" src="website/static/img/logo/svg/white_filled.svg">
77
</picture>
88
</p>
99

@@ -17,9 +17,9 @@
1717
<a href="https://join.slack.com/t/fluss-hq/shared_invite/zt-33wlna581-QAooAiCmnYboJS8D_JUcYw"><img src="https://img.shields.io/badge/slack-join_chat-brightgreen.svg?logo=slack" alt="Slack"></a>
1818
</p>
1919

20-
## What is Fluss?
20+
## What is Apache Fluss (Incubating)?
2121

22-
Fluss is a streaming storage built for real-time analytics which can serve as the real-time data layer for Lakehouse architectures.
22+
Apache Fluss (Incubating) is a streaming storage built for real-time analytics which can serve as the real-time data layer for Lakehouse architectures.
2323

2424
It bridges the gap between **data streaming** and **data Lakehouse** by enabling low-latency, high-throughput data ingestion and processing while seamlessly integrating with popular compute engines like **Apache Flink**, while Apache Spark, and StarRocks are coming soon.
2525

@@ -36,7 +36,7 @@ It bridges the gap between **data streaming** and **data Lakehouse** by enabling
3636

3737
## Building
3838

39-
Prerequisites for building Fluss:
39+
Prerequisites for building Apache Fluss:
4040

4141
- Unix-like environment (we use Linux, Mac OS X, Cygwin, WSL)
4242
- Git
@@ -49,14 +49,14 @@ cd fluss
4949
./mvnw clean package -DskipTests
5050
```
5151

52-
Fluss is now installed in `build-target`. The build command uses Maven Wrapper (`mvnw`) which ensures the correct Maven version is used.
52+
Apache Fluss is now installed in `build-target`. The build command uses Maven Wrapper (`mvnw`) which ensures the correct Maven version is used.
5353

5454
## Contributing
5555

56-
Fluss is open-source, and we’d love your help to keep it growing! Join the [discussions](https://github.com/alibaba/fluss/discussions),
56+
Apache Fluss (Incubating) is open-source, and we’d love your help to keep it growing! Join the [discussions](https://github.com/alibaba/fluss/discussions),
5757
open [issues](https://github.com/alibaba/fluss/issues) if you find a bug or request features, contribute code and documentation,
5858
or help us improve the project in any way. All contributions are welcome!
5959

6060
## License
6161

62-
Fluss project is licensed under the [Apache License 2.0](https://github.com/alibaba/fluss/blob/main/LICENSE).
62+
Apache Fluss (Incubating) project is licensed under the [Apache License 2.0](https://github.com/alibaba/fluss/blob/main/LICENSE).

fluss-client/src/main/resources/META-INF/NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The Apache Software Foundation (http://www.apache.org/).
77
This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
88

99
- com.google.code.findbugs:jsr305:1.3.9
10-
- org.apache.commons:commons-lang3:3.12.0
10+
- org.apache.commons:commons-lang3:3.18.0
1111
- org.apache.commons:commons-math3:3.6.1
1212
- org.rocksdb:rocksdbjni:10.2.1
1313
- org.lz4:lz4-java:1.8.0

fluss-common/src/main/java/com/alibaba/fluss/lake/committer/LakeCommitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public interface LakeCommitter<WriteResult, CommittableT> extends AutoCloseable
4242
* @return the committable object
4343
* @throws IOException if an I/O error occurs
4444
*/
45-
CommittableT toCommitable(List<WriteResult> writeResults) throws IOException;
45+
CommittableT toCommittable(List<WriteResult> writeResults) throws IOException;
4646

4747
/**
4848
* Commits the given committable object.

fluss-common/src/main/java/com/alibaba/fluss/lake/writer/LakeTieringFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
* serializers for write results and committable objects.
3232
*
3333
* @param <WriteResult> the type of the write result
34-
* @param <CommitableT> the type of the committable object
34+
* @param <CommittableT> the type of the committable object
3535
* @since 0.7
3636
*/
3737
@PublicEvolving
38-
public interface LakeTieringFactory<WriteResult, CommitableT> extends Serializable {
38+
public interface LakeTieringFactory<WriteResult, CommittableT> extends Serializable {
3939

4040
/**
4141
* Creates a lake writer to write Fluss's rows to Paimon/Iceberg rows.
@@ -60,13 +60,13 @@ LakeWriter<WriteResult> createLakeWriter(WriterInitContext writerInitContext)
6060
* @return the lake committer
6161
* @throws IOException if an I/O error occurs
6262
*/
63-
LakeCommitter<WriteResult, CommitableT> createLakeCommitter(
63+
LakeCommitter<WriteResult, CommittableT> createLakeCommitter(
6464
CommitterInitContext committerInitContext) throws IOException;
6565

6666
/**
6767
* Returns the serializer for committable objects.
6868
*
6969
* @return the serializer for committable objects
7070
*/
71-
SimpleVersionedSerializer<CommitableT> getCommitableSerializer();
71+
SimpleVersionedSerializer<CommittableT> getCommittableSerializer();
7272
}

fluss-common/src/main/java/com/alibaba/fluss/metrics/MetricNames.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class MetricNames {
4444

4545
// for coordinator event processor
4646
public static final String EVENT_QUEUE_SIZE = "eventQueueSize";
47-
public static final String EVENT_PROCESS_TIME_MS = "eventProcessTimeMs";
4847
public static final String EVENT_QUEUE_TIME_MS = "eventQueueTimeMs";
48+
public static final String EVENT_PROCESSING_TIME_MS = "eventProcessingTimeMs";
4949

5050
// --------------------------------------------------------------------------------------------
5151
// metrics for tablet server

fluss-common/src/main/java/com/alibaba/fluss/row/TimestampNtz.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static TimestampNtz fromLocalDateTime(LocalDateTime dateTime) {
116116
/** Converts this {@link TimestampNtz} object to a {@link LocalDateTime}. */
117117
public LocalDateTime toLocalDateTime() {
118118
int date = (int) (millisecond / MILLIS_PER_DAY);
119-
int time = (int) (millisecond % MILLIS_PER_DAY);
119+
long time = millisecond % MILLIS_PER_DAY;
120120
if (time < 0) {
121121
--date;
122122
time += MILLIS_PER_DAY;

0 commit comments

Comments
 (0)