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

Create feature_request.md #158

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bf7f2f0
Upgrade 5.2.0 (#5)
caojie09 Mar 28, 2019
2187157
Upgrade version 5.2.1-SNAPSHOT. (#8)
Synex-wh Apr 12, 2019
4e1cc58
fix temporary push bug (#13)
Synex-wh Apr 25, 2019
fb83614
Rest data info id list (#15)
Synex-wh Apr 29, 2019
d096114
Upgrade jetty version (#17)
Synex-wh May 10, 2019
bf57100
Update Travis CI Link Address
khotyn Jul 12, 2019
5ed7039
Fix issue24 (#41)
Synex-wh Aug 1, 2019
c5ef46e
Upgrade version to 5.2.1 for release (#40)
Synex-wh Aug 2, 2019
133a5ed
Fix version 521 (#42)
Synex-wh Aug 2, 2019
9bcab36
Update master (#60)
Synex-wh Sep 26, 2019
ae8d216
fix version 5.3.0 (#62)
Synex-wh Sep 26, 2019
2b9f708
update to 5.4.0-SNAPSHOT (#79)
straybirdzls Jan 7, 2020
da14c5c
New snapshot (#81)
Synex-wh Feb 3, 2020
c503394
20191204 idc sync (#86)
atellwu Feb 14, 2020
c95c518
add case sensitive feature and unpub/unsub event (#87)
straybirdzls Feb 14, 2020
a6d1741
reduce cache log (#88)
atellwu Feb 17, 2020
9e21e12
fix close push fail when case not sensitive (#92)
straybirdzls Feb 27, 2020
a3728fc
20200229 fix cloud datanetworkfail (#93)
atellwu Mar 3, 2020
d439071
update version to 5.4.1 (#94)
atellwu Mar 4, 2020
c3ed82e
20200316 fix client cell (#98)
atellwu Mar 16, 2020
7b06d5c
chore: update version to 5.4.3-SNAPSHOT (#108)
straybirdzls May 15, 2020
8d1e3bb
Chore/update hessian (#115)
straybirdzls May 18, 2020
16221f3
Fix windows package (#102)
khotyn May 29, 2020
a3b312c
update DataChangeEventQueue: add log for onChange (#100)
atellwu May 29, 2020
78b63a1
fix properties of integration: data.server.datumTimeToLiveSec should …
atellwu Aug 3, 2020
bea8df7
Fix/session data override clean (#114)
straybirdzls Aug 23, 2020
a2a50d5
fix: https://github.com/sofastack/sofa-registry/issues/121 (#122)
atellwu Aug 23, 2020
bf50669
update version 5.4.3 (#134)
dzdx Aug 23, 2020
a09356a
Fix/duplicated connect (#117)
straybirdzls Aug 23, 2020
3a2034a
Bump netty-all from 4.1.25.Final to 4.1.42.Final (#80)
dependabot[bot] Aug 23, 2020
505e36b
fix duplicate connectId && snapshot backup (#135)
dzdx Aug 23, 2020
fb22342
Clean log (#140)
nocvalight Oct 12, 2020
e5d1e19
session disconnect delay configurable (#141)
nocvalight Oct 12, 2020
cc2f105
Dev 5.4.5 (#143)
dzdx Oct 15, 2020
38bae7d
change renew expired duration to 15s (#145)
dzdx Oct 16, 2020
b2e430f
split executor in session and data (#152)
dzdx Dec 2, 2020
abd97d1
Migrate from TravisCI to Github Actions (#155)
NickNYU Mar 25, 2021
71e2150
Create feature_request.md
NickNYU May 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

## In what area(s)?

<!-- Remove the '> ' to select -->

> /area runtime
> /area operator
> /area placement
> /area docs
> /area test-and-release

## Describe the feature
<!-- Please also discuss possible business value -->
28 changes: 28 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn clean install -DskipTests -B -V
&& sh ./tools/check_format.sh
&& mvn clean test
- name: Codecov
uses: codecov/codecov-action@v1
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: java
sudo: false

dist: trusty

jdk:
- oraclejdk8

Expand All @@ -12,4 +14,4 @@ script:
- sh ./tools/check_format.sh

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SOFARegistry

[![Build Status](https://travis-ci.com/alipay/sofa-registry.svg?branch=master)](https://travis-ci.com/alipay/sofa-registry)
[![Java CI with Maven](https://github.com/sofastack/sofa-registry/actions/workflows/maven.yml/badge.svg)](https://github.com/sofastack/sofa-registry/actions/workflows/maven.yml)
![license](https://img.shields.io/badge/license-Apache--2.0-green.svg)
[![Coverage Status](https://codecov.io/gh/alipay/sofa-registry/branch/master/graph/badge.svg)](https://codecov.io/gh/alipay/sofa-registry)
![maven](https://img.shields.io/github/release/alipay/sofa-registry.svg)
[![Coverage Status](https://codecov.io/gh/alipay/sofa-registry/branch/master/graph/badge.svg)](https://codecov.io/gh/sofastack/sofa-registry)
![maven](https://img.shields.io/github/release/sofastack/sofa-registry.svg)

SOFARegistry 是蚂蚁金服开源的一个生产级、高时效、高可用的服务注册中心。SOFARegistry 最早源自于淘宝的 ConfigServer,十年来,随着蚂蚁金服的业务发展,注册中心架构已经演进至第五代。目前 SOFARegistry 不仅全面服务于蚂蚁金服的自有业务,还随着蚂蚁金融科技服务众多合作伙伴,同时也兼容开源生态。SOFARegistry 采用 AP 架构,支持秒级时效性推送,同时采用分层架构支持无限水平扩展。

## 功能特性
## 功能特性

- 支持服务发布与服务订阅
- 支持服务变更时的主动推送
Expand Down
4 changes: 2 additions & 2 deletions client/all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.alipay.sofa</groupId>
<artifactId>registry-client-all</artifactId>
<version>5.2.0-SNAPSHOT</version>
<version>5.4.5</version>

<name>${project.groupId}:${project.artifactId}</name>
<url>http://github.com/alipay/sofa-registry</url>
Expand Down Expand Up @@ -56,7 +56,7 @@
<hessian.version>3.3.6</hessian.version>
<lookout.version>1.5.2</lookout.version>
<sofa.common.tools.version>1.0.12</sofa.common.tools.version>
<netty.version>4.1.25.Final</netty.version>
<netty.version>4.1.42.Final</netty.version>
<slf4j.version>1.7.21</slf4j.version>
<main.user.dir>../../</main.user.dir>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion client/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alipay.sofa</groupId>
<artifactId>registry-client-parent</artifactId>
<version>5.2.0-SNAPSHOT</version>
<version>5.4.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion client/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alipay.sofa</groupId>
<artifactId>registry-client-parent</artifactId>
<version>5.2.0-SNAPSHOT</version>
<version>5.4.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
*/
package com.alipay.sofa.registry.client.provider;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;

import org.junit.After;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alipay.sofa.registry.client.api.ConfigDataObserver;
import com.alipay.sofa.registry.client.api.Configurator;
import com.alipay.sofa.registry.client.api.Publisher;
Expand All @@ -31,16 +42,6 @@
import com.alipay.sofa.registry.core.model.PublisherRegister;
import com.alipay.sofa.registry.core.model.ScopeEnum;
import com.alipay.sofa.registry.core.model.SubscriberRegister;
import org.junit.After;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;

/**
* The type Default registry client test.
Expand Down Expand Up @@ -89,7 +90,7 @@ public void registerPublisher() throws InterruptedException {

defaultPublisher.republish("republish test");

Thread.sleep(500L);
Thread.sleep(2000L);
// register success when republish
assertTrue(defaultPublisher.isRegistered());
}
Expand All @@ -111,7 +112,7 @@ public void handleData(String dataId, UserData data) {
assertNotNull(subscriber);
assertEquals(dataId, subscriber.getDataId());

Thread.sleep(500L);
Thread.sleep(2000L);

RegisterCache registerCache = registryClient.getRegisterCache();

Expand Down Expand Up @@ -142,7 +143,7 @@ public void handleData(String dataId, ConfigData configData) {
assertNotNull(configurator);
assertEquals(dataId, configurator.getDataId());

Thread.sleep(500L);
Thread.sleep(2000L);

RegisterCache registerCache = registryClient.getRegisterCache();

Expand All @@ -164,7 +165,7 @@ public void unregisterSinglePublisherTest() throws InterruptedException {
int unregisterCount = registryClient.unregister(dataId, null, RegistryType.PUBLISHER);
assertEquals(1, unregisterCount);

Thread.sleep(500L);
Thread.sleep(2000L);

Publisher temp = registryClient.getRegisterCache().getPublisherByRegistId(
publisher.getRegistId());
Expand All @@ -185,7 +186,7 @@ public void unregisterSingleSubscriberTest() throws InterruptedException {
int unregisterCount = registryClient.unregister(dataId, null, RegistryType.SUBSCRIBER);
assertEquals(1, unregisterCount);

Thread.sleep(500L);
Thread.sleep(2000L);

Subscriber temp = registryClient.getRegisterCache().getSubscriberByRegistId(
subscriber.getRegistId());
Expand All @@ -206,7 +207,7 @@ public void unregisterSingleConfiguratorTest() throws InterruptedException {
int unregisterCount = registryClient.unregister(dataId, null, RegistryType.CONFIGURATOR);
assertEquals(1, unregisterCount);

Thread.sleep(500L);
Thread.sleep(2000L);

Subscriber temp = registryClient.getRegisterCache().getSubscriberByRegistId(
configurator.getRegistId());
Expand Down Expand Up @@ -236,13 +237,13 @@ public void unregisterMultiTest() throws InterruptedException {

Subscriber subscriber2 = registryClient.register(subscriberRegistration2);

Thread.sleep(500L);
Thread.sleep(2000L);

// 2. unregister publisher
int unregisterCount = registryClient.unregister(dataId, null, RegistryType.PUBLISHER);
assertEquals(2, unregisterCount);

Thread.sleep(500L);
Thread.sleep(2000L);

// 3. check publisher register cache
RegisterCache registerCache = registryClient.getRegisterCache();
Expand All @@ -256,7 +257,7 @@ public void unregisterMultiTest() throws InterruptedException {
unregisterCount = registryClient.unregister(dataId, null, RegistryType.SUBSCRIBER);
assertEquals(2, unregisterCount);

Thread.sleep(500L);
Thread.sleep(2000L);

// 5. check subscriber register cache
Subscriber tempSub = registerCache.getSubscriberByRegistId(subscriber1.getRegistId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@
*/
package com.alipay.sofa.registry.client.provider;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.List;

import org.junit.After;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alipay.sofa.registry.client.api.Publisher;
import com.alipay.sofa.registry.client.api.Subscriber;
import com.alipay.sofa.registry.client.api.SubscriberDataObserver;
Expand All @@ -26,19 +40,6 @@
import com.alipay.sofa.registry.core.model.DataBox;
import com.alipay.sofa.registry.core.model.PublisherRegister;
import com.alipay.sofa.registry.core.model.SubscriberRegister;
import org.junit.After;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

/**
*
Expand Down Expand Up @@ -126,7 +127,7 @@ public void publishAndUnregister() throws InterruptedException {
// step 1
Publisher publisher = registryClient.register(new PublisherRegistration(dataId), data);

Thread.sleep(500L);
Thread.sleep(2000L);

String registId = publisher.getRegistId();
PublisherRegister publisherRegister = mockServer.queryPubliser(registId);
Expand All @@ -137,7 +138,7 @@ public void publishAndUnregister() throws InterruptedException {
// step 2
publisher.unregister();

Thread.sleep(500L);
Thread.sleep(2000L);

assertNull(mockServer.queryPubliser(registId));

Expand All @@ -151,7 +152,7 @@ public void publishAndRefused() throws InterruptedException {
// step 1
Publisher publisher = registryClient.register(new PublisherRegistration(data), data);

Thread.sleep(500L);
Thread.sleep(2000L);

String registId = publisher.getRegistId();
PublisherRegister publisherRegister = mockServer.queryPubliser(registId);
Expand Down Expand Up @@ -182,7 +183,7 @@ public void handleData(String dataId, UserData data) {
Subscriber subscriber = registryClient.register(new SubscriberRegistration(dataId,
dataObserver));

Thread.sleep(500L);
Thread.sleep(2000L);

String registId = subscriber.getRegistId();
SubscriberRegister subscriberRegister = mockServer.querySubscriber(registId);
Expand All @@ -191,7 +192,7 @@ public void handleData(String dataId, UserData data) {
// step 2
subscriber.unregister();

Thread.sleep(500L);
Thread.sleep(2000L);

assertNull(mockServer.queryPubliser(registId));

Expand All @@ -211,7 +212,7 @@ public void handleData(String dataId, UserData data) {
Subscriber subscriber = registryClient.register(new SubscriberRegistration(
"subscribeAndRefused", dataObserver));

Thread.sleep(500L);
Thread.sleep(2000L);

String registId = subscriber.getRegistId();
SubscriberRegister subscriberRegister = mockServer.querySubscriber(registId);
Expand Down
2 changes: 1 addition & 1 deletion client/log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alipay.sofa</groupId>
<artifactId>registry-client-parent</artifactId>
<version>5.2.0-SNAPSHOT</version>
<version>5.4.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.alipay.sofa</groupId>
<artifactId>registry-parent</artifactId>
<version>5.2.0-SNAPSHOT</version>
<version>5.4.5</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alipay.sofa</groupId>
<artifactId>registry-parent</artifactId>
<version>5.2.0-SNAPSHOT</version>
<version>5.4.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Loading