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

Develop (0.1.0) #94

Merged
merged 28 commits into from
Aug 5, 2024
Merged

Develop (0.1.0) #94

merged 28 commits into from
Aug 5, 2024

Conversation

akageun
Copy link
Contributor

@akageun akageun commented Jul 30, 2024

No description provided.

api("com.datastax.oss:java-driver-core:${datastaxJavaDriverVersion}")
api("com.datastax.oss:java-driver-query-builder:${datastaxJavaDriverVersion}")
api("com.datastax.oss:java-driver-mapper-runtime:${datastaxJavaDriverVersion}")
implementation("com.datastax.oss:java-driver-core:${datastaxJavaDriverVersion}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Core 영역에서만 driver 관련 로직 작성하도록 설정 변경했습니다.

@@ -59,30 +45,14 @@ public CqlSession makeSession(ClusterConnection clusterConnection, String keyspa

builder.withConfigLoader(
DriverConfigLoader.programmaticBuilder()
// .withDuration(DefaultDriverOption.HEARTBEAT_INTERVAL, Duration.ofSeconds(30))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

HEARTBEAT 설정에 대해서 확인하고 추후 System Config 로 설정할 수 있게 할 예정 입니다.


return Version.parse(row.getString("release_version"));
return node.getCassandraVersion();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

논의할 것처럼 Driver 에서 제공해주는 버전처리로 일원화 했습니다.

@@ -27,4 +29,11 @@ protected CqlSession makeSession() {
.withLocalDatacenter("dc1")
.build();
}
protected CqlSession makeSession(String keyspaceName) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

test 용 컨피그 생성한 다음 해당 설정을 cluster 로직 태워서 생성할 수 있도록 변경할 예정 입니다.

Comment on lines 8 to 10
// implementation("com.datastax.oss:java-driver-core:${datastaxJavaDriverVersion}")
// implementation("com.datastax.oss:java-driver-query-builder:${datastaxJavaDriverVersion}")
// implementation("com.datastax.oss:java-driver-mapper-runtime:${datastaxJavaDriverVersion}")
Copy link
Member

Choose a reason for hiding this comment

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

제거해도 좋을거 같네요

@seungh0
Copy link
Member

seungh0 commented Jul 31, 2024

전에 의논했던거랑 반대로, develop 브랜치 없애고, main 브랜치에서 배포시 tag만 따서 가는건 어떨까요?

이런 형태의 플젝의 경우 main, develop 두 개 분리해서 이점이 크게 없는거 같네요.

return CqlSession.builder()
.addContactPoint(new InetSocketAddress("127.0.0.1", 29042))
.withLocalDatacenter("dc1")
.withKeyspace(keyspaceName)
Copy link
Member

@seungh0 seungh0 Jul 31, 2024

Choose a reason for hiding this comment

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

.withKeyspace Cassandra 4.x 미만에서 호환 안되었던걸로 기억해요

@akageun
Copy link
Contributor Author

akageun commented Jul 31, 2024

네. 저도 이거에 대해서 논의하고 싶었습니다. develop 으로 가는거 말고...

    1. main 에 계속 머지하며 배포시에만 tag 를 생성한다.
    1. tagging 할 내용으로 브랜치를 만들어서 각각 관리한다.

2번의 경우 오버스팩인거 같아서 1번으로 가는게 좋아보이긴 합니다. 이번꺼까지만 하고, 다음 릴리즈부터는 1번으로 갑시다!

@seungh0
Copy link
Member

seungh0 commented Jul 31, 2024

저도 1번이 좋은거 같습니다.

seungh0 and others added 5 commits July 31, 2024 23:37
* Refactoring Code Smell

* ClusterManager CLUSTER public -> private
* Cluster Version Evaluator

* Prevent registration of unsupported Cassandra versions in the cluster
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) to 4.1.4 and updates ancestor dependency [node-sass](https://github.com/sass/node-sass). These dependencies need to be updated together.


Updates `tough-cookie` from 2.5.0 to 4.1.4
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](salesforce/tough-cookie@v2.5.0...v4.1.4)

Updates `node-sass` from 7.0.3 to 9.0.0
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](sass/node-sass@v7.0.3...v9.0.0)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
- dependency-name: node-sass
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
seungh0 and others added 5 commits August 1, 2024 03:01
* Refactor Code Smell

* Refactor Code Smell
* Build Tool Npm to Yarn

* Build Tool Npm to Yarn

* Build Tool Npm to Yarn
Copy link

sonarcloud bot commented Aug 5, 2024

@akageun akageun merged commit b4a277a into main Aug 5, 2024
24 checks passed
@seungh0 seungh0 deleted the develop branch August 5, 2024 14:43
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.

3 participants