You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEXT_CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
9
9
### Bundles
10
10
*`bundle deployment migrate` will now run a plan before migration to check if deployment was done ([#4088](https://github.com/databricks/cli/pull/4088))
11
+
* engine/direct: Increase "serial" in state file after every deployment ([#4115](https://github.com/databricks/cli/pull/4115))
Error: Required engine "terraform" does not match present state files. Clear "DATABRICKS_BUNDLE_ENGINE" env var to use engine appropriate for the state.
40
40
41
41
Available state files:
42
42
- terraform.tfstate: remote terraform state serial=4 lineage="[UUID]"
43
-
- [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=5 lineage="[UUID]"
43
+
- [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=6 lineage="[UUID]"
44
44
45
45
46
46
=== Should show that it's already migrated
47
47
>>> musterr [CLI] bundle deployment migrate
48
48
Error: already using direct engine
49
-
Details: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=5 lineage="[UUID]"
49
+
Details: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=6 lineage="[UUID]"
50
50
51
51
>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan
52
52
update pipelines.test_pipeline
@@ -97,14 +97,14 @@ Deployment complete!
97
97
=== Should show that it's already migrated
98
98
>>> musterr [CLI] bundle deployment migrate
99
99
Error: already using direct engine
100
-
Details: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=5 lineage="[UUID]"
100
+
Details: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=7 lineage="[UUID]"
101
101
102
102
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states
103
-
[TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=5 lineage="[UUID]"
103
+
[TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=7 lineage="[UUID]"
104
104
105
105
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states --force-pull
106
-
resources.json: remote direct state serial=5 lineage="[UUID]"
107
-
[TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=5 lineage="[UUID]"
106
+
resources.json: remote direct state serial=7 lineage="[UUID]"
107
+
[TEST_TMP_DIR]/.databricks/bundle/dev/resources.json: local direct state serial=7 lineage="[UUID]"
Error: Required engine "terraform" does not match present state files. Clear "DATABRICKS_BUNDLE_ENGINE" env var to use engine appropriate for the state.
30
30
31
31
Available state files:
32
32
- terraform.tfstate: remote terraform state serial=1 lineage="[UUID]"
33
-
- [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=2 lineage="[UUID]"
33
+
- [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=3 lineage="[UUID]"
34
34
35
35
36
36
>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan
@@ -54,11 +54,11 @@ Deployment complete!
54
54
=== Should show that it's already migrated
55
55
>>> musterr [CLI] bundle deployment migrate
56
56
Error: already using direct engine
57
-
Details: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=2 lineage="[UUID]"
57
+
Details: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=4 lineage="[UUID]"
58
58
59
59
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states
60
-
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=2 lineage="[UUID]"
60
+
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=4 lineage="[UUID]"
61
61
62
62
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states --force-pull
63
-
resources.json: remote direct state serial=2 lineage="[UUID]"
64
-
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=2 lineage="[UUID]"
63
+
resources.json: remote direct state serial=4 lineage="[UUID]"
64
+
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=4 lineage="[UUID]"
Error: Required engine "terraform" does not match present state files. Clear "DATABRICKS_BUNDLE_ENGINE" env var to use engine appropriate for the state.
30
30
31
31
Available state files:
32
32
- terraform.tfstate: remote terraform state serial=7 lineage="[UUID]"
33
-
- [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=8 lineage="[UUID]"
33
+
- [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=9 lineage="[UUID]"
34
34
35
35
36
36
>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan
@@ -52,11 +52,11 @@ Deployment complete!
52
52
=== Should show that it's already migrated
53
53
>>> musterr [CLI] bundle deployment migrate
54
54
Error: already using direct engine
55
-
Details: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=8 lineage="[UUID]"
55
+
Details: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=10 lineage="[UUID]"
56
56
57
57
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states
58
-
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=8 lineage="[UUID]"
58
+
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=10 lineage="[UUID]"
59
59
60
60
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states --force-pull
61
-
resources.json: remote direct state serial=8 lineage="[UUID]"
62
-
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=8 lineage="[UUID]"
61
+
resources.json: remote direct state serial=10 lineage="[UUID]"
62
+
[TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=10 lineage="[UUID]"
0 commit comments