Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Enable ci #149

Merged
merged 2 commits into from
Dec 10, 2024
Merged

[build] Enable ci #149

merged 2 commits into from
Dec 10, 2024

Conversation

luoyuxia
Copy link
Collaborator

@luoyuxia luoyuxia commented Dec 9, 2024

Purpose

Enable ci for fluss

Tests

N/A

API and Format

N/A

Documentation

N/A

@CLAassistant
Copy link

CLAassistant commented Dec 9, 2024

CLA assistant check
All committers have signed the CLA.

// less value will be popped first
int res = Integer.compare(req2.getPriority(), req1.getPriority());
// if priority is same, we want to keep FIFO
if (res == 0 && req1 != req2) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous implementation is not FIFO, we need to change it to FIFO

@@ -116,7 +116,7 @@ void testRestore() throws Exception {
final int leaderServer = FLUSS_CLUSTER_EXTENSION.waitAndGetLeader(tableBucket);
Replica replica = FLUSS_CLUSTER_EXTENSION.waitAndGetLeaderReplica(tableBucket);

int recordsNum = 3000;
int recordsNum = 10000;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3000 may not enough

@@ -142,6 +144,11 @@ public void afterEach(ExtensionContext extensionContext) {
for (String database : databases) {
if (!database.equals(defaultDb)) {
metaDataManager.dropDatabase(database, true, true);
// delete the data dirs
for (int serverId : tabletServers.keySet()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to delete data dirs, otherwise, restart a server will meet problem since the metadata is dropped.

@luoyuxia
Copy link
Collaborator Author

luoyuxia commented Dec 9, 2024

@wuchong enable ci pr ready

@@ -101,6 +102,7 @@ void testAppendOnly() throws Exception {

@ParameterizedTest
@ValueSource(booleans = {true, false})
@Disabled("TODO, fix me in #116")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be fixed in followup PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and there're still some unstable tests need to be fixed in followup pr

List<RpcRequest> rpcRequests = new ArrayList<>();
// push rpc requests
for (int i = 0; i < 100; i++) {
RpcRequest rocRequest =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rpcRequest?

@luoyuxia
Copy link
Collaborator Author

Ci pass...Merging....

@luoyuxia luoyuxia merged commit 2291484 into alibaba:main Dec 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants