Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Partition
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Partition
Commits
6bb4d882
Commit
6bb4d882
authored
2 years ago
by
Bhushan Rade
Browse files
Options
Downloads
Patches
Plain Diff
automatic deployment ibm fix
parent
7d23bdae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!229
Merge branch 'dependency-upgrade' into 'master'
,
!200
automatic deployment ibm fix
Pipeline
#113730
failed
2 years ago
Stage: review
Stage: coverage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provider/partition-ibm/src/main/java/org/opengroup/osdu/partition/provider/ibm/service/PartitionServiceImpl.java
+11
-6
11 additions, 6 deletions
.../partition/provider/ibm/service/PartitionServiceImpl.java
with
11 additions
and
6 deletions
provider/partition-ibm/src/main/java/org/opengroup/osdu/partition/provider/ibm/service/PartitionServiceImpl.java
+
11
−
6
View file @
6bb4d882
...
...
@@ -99,15 +99,11 @@ public class PartitionServiceImpl implements IPartitionService {
PartitionInfo
pi
;
PartitionDoc
partitionDoc
=
new
PartitionDoc
(
partitionId
,
partitionInfo
);
try
{
HttpResponse
response
=
runPipeline
(
partitionId
);
if
(
response
.
getResponseCode
()
!=
HttpStatus
.
SC_ACCEPTED
||
response
.
getResponseCode
()
!=
HttpStatus
.
SC_CREATED
)
{
log
.
error
(
"Response Recieved : "
+
response
.
getResponseCode
()+
"Error occured while triggering pipeline for record-changed-topic-listener [tenant-specific] deployment"
);
}
db
.
save
(
partitionDoc
);
pi
=
partitionInfo
;
}
catch
(
DocumentConflictException
e
)
{
log
.
error
(
"Partition already exists"
);
throw
new
AppException
(
e
.
getStatusCode
(),
"Conflict"
,
"partition already exists"
,
e
);
log
.
error
(
"
{}
Partition already exists"
,
partitionId
);
throw
new
AppException
(
e
.
getStatusCode
(),
"Conflict"
,
"partition already exists"
);
}
catch
(
Exception
e
)
{
log
.
info
(
"Partition creation failed "
);
e
.
printStackTrace
();
...
...
@@ -118,6 +114,15 @@ public class PartitionServiceImpl implements IPartitionService {
partitionServiceCache
.
put
(
partitionId
,
pi
);
partitionListCache
.
clearAll
();
}
if
(
partitionId
.
startsWith
(
"integrationtest"
)
||
partitionId
.
startsWith
(
"common"
))
{
log
.
info
(
"this partiton is created through integration test, skipping pipeline trigger"
);
return
pi
;
}
HttpResponse
response
=
runPipeline
(
partitionId
);
if
(
response
.
getResponseCode
()
!=
HttpStatus
.
SC_ACCEPTED
||
response
.
getResponseCode
()
!=
HttpStatus
.
SC_CREATED
)
{
log
.
error
(
"Response Recieved : "
+
response
.
getResponseCode
()+
"Error occured while triggering pipeline for record-changed-topic-listener [tenant-specific] deployment"
);
}
return
pi
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment