mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-16 19:33:41 +00:00
fix(404): Fix 404 Exit Error. (#3189)
This commit is contained in:
parent
ccb09a6966
commit
d9380eeffa
@ -22,7 +22,6 @@ public class BootstrapManagerApplicationListener implements ApplicationListener<
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onApplicationEvent(@Nonnull ContextRefreshedEvent event) {
|
public void onApplicationEvent(@Nonnull ContextRefreshedEvent event) {
|
||||||
System.out.println("Started the application you idiot");
|
|
||||||
_bootstrapManager.start();
|
_bootstrapManager.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import com.linkedin.restli.client.AbstractRequestBuilder;
|
|||||||
import com.linkedin.restli.client.Client;
|
import com.linkedin.restli.client.Client;
|
||||||
import com.linkedin.restli.client.Request;
|
import com.linkedin.restli.client.Request;
|
||||||
import com.linkedin.restli.client.Response;
|
import com.linkedin.restli.client.Response;
|
||||||
import com.linkedin.restli.client.RestLiResponseException;
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ -24,21 +23,9 @@ public abstract class BaseClient implements AutoCloseable {
|
|||||||
protected <T> Response<T> sendClientRequest(
|
protected <T> Response<T> sendClientRequest(
|
||||||
final AbstractRequestBuilder<?, ?, ? extends Request<T>> requestBuilder,
|
final AbstractRequestBuilder<?, ?, ? extends Request<T>> requestBuilder,
|
||||||
final String actor) throws RemoteInvocationException {
|
final String actor) throws RemoteInvocationException {
|
||||||
try {
|
|
||||||
// Actor = CorpUserUrn associated with the initiator of the request.
|
// Actor = CorpUserUrn associated with the initiator of the request.
|
||||||
requestBuilder.addHeader(Constants.ACTOR_HEADER_NAME, actor);
|
requestBuilder.addHeader(Constants.ACTOR_HEADER_NAME, actor);
|
||||||
return _client.sendRequest(requestBuilder.build()).getResponse();
|
return _client.sendRequest(requestBuilder.build()).getResponse();
|
||||||
} catch (RemoteInvocationException e) {
|
|
||||||
if (e instanceof RestLiResponseException) {
|
|
||||||
RestLiResponseException restliException = (RestLiResponseException) e;
|
|
||||||
if (restliException.getStatus() == 404) {
|
|
||||||
log.error("ERROR: Your datahub-frontend instance version is ahead of your gms instance. "
|
|
||||||
+ "Please update your gms to the latest Datahub release");
|
|
||||||
System.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user